Class PayloadSpanUtil
java.lang.Object
org.apache.lucene.search.payloads.PayloadSpanUtil
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.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCollection<byte[]>
getPayloadsForQuery
(Query query) Query should be rewritten for wild/fuzzy support.
-
Constructor Details
-
PayloadSpanUtil
- Parameters:
context
- that contains doc with payloads to extract- See Also:
-
-
Method Details
-
getPayloadsForQuery
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
-