Class PrefixTermsEnum
Subclass of FilteredTermsEnum for enumerating all terms that match the specified prefix filter term.
Term enumerations are always ordered by Comparer. Each term in the enumeration is greater than all that precede it.
Implements
Inherited Members
Namespace: Lucene.Net.Search
Assembly: Lucene.Net.dll
Syntax
public class PrefixTermsEnum : FilteredTermsEnum, IBytesRefEnumerator
Constructors
PrefixTermsEnum(TermsEnum, BytesRef)
Subclass of FilteredTermsEnum for enumerating all terms that match the specified prefix filter term.
Term enumerations are always ordered by Comparer. Each term in the enumeration is greater than all that precede it.
Declaration
public PrefixTermsEnum(TermsEnum tenum, BytesRef prefixText)
Parameters
Type | Name | Description |
---|---|---|
TermsEnum | tenum | |
BytesRef | prefixText |
Methods
Accept(BytesRef)
Return if term is accepted, not accepted or the iteration should ended (and possibly seek).
Declaration
protected override FilteredTermsEnum.AcceptStatus Accept(BytesRef term)
Parameters
Type | Name | Description |
---|---|---|
BytesRef | term |
Returns
Type | Description |
---|---|
FilteredTermsEnum.AcceptStatus |