Class SlowFuzzyTermsEnum
Potentially slow fuzzy Lucene.Net.Index.TermsEnum for enumerating all terms that are similar to the specified filter term.
If the minSimilarity or maxEdits is greater than the Automaton's allowable range, this backs off to the classic (brute force) fuzzy terms enum method by calling GetAutomatonEnum(int, BytesRef). Term enumerations are always ordered by Lucene.Net.Search.FuzzyTermsEnum.Comparer. Each term in the enumeration is greater than all that precede it.Implements
IBytesRefEnumerator
Inherited Members
FuzzyTermsEnum.m_minSimilarity
FuzzyTermsEnum.m_scaleFactor
FuzzyTermsEnum.m_termLength
FuzzyTermsEnum.m_maxEdits
FuzzyTermsEnum.m_raw
FuzzyTermsEnum.m_terms
FuzzyTermsEnum.m_termText
FuzzyTermsEnum.m_realPrefixLength
FuzzyTermsEnum.SetEnum(TermsEnum)
FuzzyTermsEnum.MoveNext()
FuzzyTermsEnum.DocFreq
FuzzyTermsEnum.TotalTermFreq
FuzzyTermsEnum.Docs(IBits, DocsEnum, DocsFlags)
FuzzyTermsEnum.DocsAndPositions(IBits, DocsAndPositionsEnum, DocsAndPositionsFlags)
FuzzyTermsEnum.SeekExact(BytesRef, TermState)
FuzzyTermsEnum.GetTermState()
FuzzyTermsEnum.Comparer
FuzzyTermsEnum.Ord
FuzzyTermsEnum.SeekExact(BytesRef)
FuzzyTermsEnum.SeekCeil(BytesRef)
FuzzyTermsEnum.Term
FuzzyTermsEnum.MinSimilarity
FuzzyTermsEnum.ScaleFactor
TermsEnum.Attributes
TermsEnum.Docs(IBits, DocsEnum)
TermsEnum.DocsAndPositions(IBits, DocsAndPositionsEnum)
TermsEnum.EMPTY
Namespace: Lucene.Net.Sandbox.Queries
Assembly: Lucene.Net.Sandbox.dll
Syntax
[Obsolete("Use FuzzyTermsEnum instead.")]
public class SlowFuzzyTermsEnum : FuzzyTermsEnum, IBytesRefEnumerator
Constructors
SlowFuzzyTermsEnum(Terms, AttributeSource, Term, float, int)
Potentially slow fuzzy Lucene.Net.Index.TermsEnum for enumerating all terms that are similar to the specified filter term.
If the minSimilarity or maxEdits is greater than the Automaton's allowable range, this backs off to the classic (brute force) fuzzy terms enum method by calling GetAutomatonEnum(int, BytesRef). Term enumerations are always ordered by Lucene.Net.Search.FuzzyTermsEnum.Comparer. Each term in the enumeration is greater than all that precede it.Declaration
public SlowFuzzyTermsEnum(Terms terms, AttributeSource atts, Term term, float minSimilarity, int prefixLength)
Parameters
Type | Name | Description |
---|---|---|
Terms | terms | |
AttributeSource | atts | |
Term | term | |
float | minSimilarity | |
int | prefixLength |
Methods
MaxEditDistanceChanged(BytesRef, int, bool)
Potentially slow fuzzy Lucene.Net.Index.TermsEnum for enumerating all terms that are similar to the specified filter term.
If the minSimilarity or maxEdits is greater than the Automaton's allowable range, this backs off to the classic (brute force) fuzzy terms enum method by calling GetAutomatonEnum(int, BytesRef). Term enumerations are always ordered by Lucene.Net.Search.FuzzyTermsEnum.Comparer. Each term in the enumeration is greater than all that precede it.Declaration
protected override void MaxEditDistanceChanged(BytesRef lastTerm, int maxEdits, bool init)
Parameters
Type | Name | Description |
---|---|---|
BytesRef | lastTerm | |
int | maxEdits | |
bool | init |
Overrides
Implements
Lucene.Net.Util.IBytesRefEnumerator