Class PayloadSpanUtil


  • public class PayloadSpanUtil
    extends Object
    Experimental class to get set of payloads for most standard Lucene queries. Operates like Highlighter - IndexReader should only contain doc of interest, best to use MemoryIndex.
    • Method Detail

      • getPayloadsForQuery

        public Collection<byte[]> getPayloadsForQuery​(Query query)
                                               throws IOException
        Query should be rewritten for wild/fuzzy support.
        Parameters:
        query - rewritten query
        Returns:
        payloads Collection
        Throws:
        IOException - if there is a low-level I/O error