Interface IInputIterator
Interface for enumerating term,weight,payload triples for suggester consumption; currently only AnalyzingSuggester, FuzzySuggester and AnalyzingInfixSuggester support payloads.
Namespace: Lucene.Net.Search.Suggest
Assembly: Lucene.Net.Suggest.dll
Syntax
public interface IInputIterator : IBytesRefIterator
Properties
| Improve this Doc View SourceContexts
A term's contexts context can be used to filter suggestions. May return null, if suggest entries do not have any context
Declaration
IEnumerable<BytesRef> Contexts { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<BytesRef> |
HasContexts
Returns true if the iterator has contexts
Declaration
bool HasContexts { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
HasPayloads
Returns true if the iterator has payloads
Declaration
bool HasPayloads { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Payload
An arbitrary byte[] to record per suggestion. See Payload to retrieve the payload for each suggestion.
Declaration
BytesRef Payload { get; }
Property Value
Type | Description |
---|---|
BytesRef |
Weight
A term's weight, higher numbers mean better suggestions.
Declaration
long Weight { get; }
Property Value
Type | Description |
---|---|
System.Int64 |