FuzzyTermsEnum
instead.@Deprecated public final class SlowFuzzyTermsEnum extends FuzzyTermsEnum
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 FuzzyTermsEnum's getAutomatonEnum.
Term enumerations are always ordered by
BytesRef.compareTo(org.apache.lucene.util.BytesRef)
. Each term in the enumeration is
greater than all that precede it.
Modifier and Type | Class and Description |
---|---|
private class |
SlowFuzzyTermsEnum.LinearFuzzyTermsEnum
Deprecated.
Implement fuzzy enumeration with linear brute force.
|
FuzzyTermsEnum.LevenshteinAutomataAttribute, FuzzyTermsEnum.LevenshteinAutomataAttributeImpl
TermsEnum.SeekStatus
maxEdits, minSimilarity, raw, realPrefixLength, scale_factor, termLength, terms, termText
Constructor and Description |
---|
SlowFuzzyTermsEnum(Terms terms,
AttributeSource atts,
Term term,
float minSimilarity,
int prefixLength)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected void |
maxEditDistanceChanged(BytesRef lastTerm,
int maxEdits,
boolean init)
Deprecated.
|
docFreq, getAutomatonEnum, getMinSimilarity, getScaleFactor, next, ord, postings, seekCeil, seekExact, seekExact, seekExact, setEnum, term, termState, totalTermFreq
attributes, postings
public SlowFuzzyTermsEnum(Terms terms, AttributeSource atts, Term term, float minSimilarity, int prefixLength) throws java.io.IOException
java.io.IOException
protected void maxEditDistanceChanged(BytesRef lastTerm, int maxEdits, boolean init) throws java.io.IOException
maxEditDistanceChanged
in class FuzzyTermsEnum
java.io.IOException