Class 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.
Note
This API is experimental and might change in incompatible ways in the next release.
Inherited Members
Namespace: Lucene.Net.Search.Payloads
Assembly: Lucene.Net.dll
Syntax
public class PayloadSpanUtil
Constructors
PayloadSpanUtil(IndexReaderContext)
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.
Note
This API is experimental and might change in incompatible ways in the next release.
Declaration
public PayloadSpanUtil(IndexReaderContext context)
Parameters
Type | Name | Description |
---|---|---|
IndexReaderContext | context | that contains doc with payloads to extract |
See Also
Methods
GetPayloadsForQuery(Query)
Query should be rewritten for wild/fuzzy support.
Declaration
public virtual ICollection<byte[]> GetPayloadsForQuery(Query query)
Parameters
Type | Name | Description |
---|---|---|
Query | query | rewritten query |
Returns
Type | Description |
---|---|
ICollection<byte[]> | payloads Collection |
Exceptions
Type | Condition |
---|---|
IOException | if there is a low-level I/O error |