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.
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, docs, docs, docsAndPositions, docsAndPositions, postings
public SlowFuzzyTermsEnum(Terms terms, AttributeSource atts, Term term, float minSimilarity, int prefixLength) throws IOException
IOException
protected void maxEditDistanceChanged(BytesRef lastTerm, int maxEdits, boolean init) throws IOException
maxEditDistanceChanged
in class FuzzyTermsEnum
IOException
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.