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
FuzzyTermsEnum.getComparator(). Each term in the enumeration is
greater than all that precede it.
FuzzyTermsEnum.LevenshteinAutomataAttribute, FuzzyTermsEnum.LevenshteinAutomataAttributeImplTermsEnum.SeekStatusmaxEdits, 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, docs, docsAndPositions, getAutomatonEnum, getComparator, getMinSimilarity, getScaleFactor, next, ord, seekCeil, seekExact, seekExact, seekExact, setEnum, term, termState, totalTermFreqattributes, docs, docsAndPositions, seekCeilpublic SlowFuzzyTermsEnum(Terms terms, AttributeSource atts, Term term, float minSimilarity, int prefixLength) throws IOException
IOExceptionprotected void maxEditDistanceChanged(BytesRef lastTerm, int maxEdits, boolean init) throws IOException
maxEditDistanceChanged in class FuzzyTermsEnumIOExceptionCopyright © 2000-2013 Apache Software Foundation. All Rights Reserved.