org.apache.lucene.sandbox.queries
Class SlowFuzzyTermsEnum
java.lang.Object
org.apache.lucene.index.TermsEnum
org.apache.lucene.search.FuzzyTermsEnum
org.apache.lucene.sandbox.queries.SlowFuzzyTermsEnum
- All Implemented Interfaces:
- BytesRefIterator
Deprecated. Use FuzzyTermsEnum
instead.
@Deprecated
public final class SlowFuzzyTermsEnum
- extends FuzzyTermsEnum
Potentially slow fuzzy 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 FuzzyTermsEnum's getAutomatonEnum.
Term enumerations are always ordered by
FuzzyTermsEnum.getComparator()
. Each term in the enumeration is
greater than all that precede it.
Methods inherited from class org.apache.lucene.search.FuzzyTermsEnum |
docFreq, docs, docsAndPositions, getAutomatonEnum, getComparator, getMinSimilarity, getScaleFactor, next, ord, seekCeil, seekExact, seekExact, seekExact, setEnum, term, termState, totalTermFreq |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SlowFuzzyTermsEnum
public SlowFuzzyTermsEnum(Terms terms,
AttributeSource atts,
Term term,
float minSimilarity,
int prefixLength)
throws IOException
- Deprecated.
- Throws:
IOException
maxEditDistanceChanged
protected void maxEditDistanceChanged(BytesRef lastTerm,
int maxEdits,
boolean init)
throws IOException
- Deprecated.
- Overrides:
maxEditDistanceChanged
in class FuzzyTermsEnum
- Throws:
IOException
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.