org.apache.lucene.sandbox.queries
Class SlowFuzzyTermsEnum

java.lang.Object
  extended by org.apache.lucene.index.TermsEnum
      extended by org.apache.lucene.search.FuzzyTermsEnum
          extended by 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.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.lucene.search.FuzzyTermsEnum
FuzzyTermsEnum.LevenshteinAutomataAttribute, FuzzyTermsEnum.LevenshteinAutomataAttributeImpl
 
Nested classes/interfaces inherited from class org.apache.lucene.index.TermsEnum
TermsEnum.SeekStatus
 
Field Summary
 
Fields inherited from class org.apache.lucene.search.FuzzyTermsEnum
maxEdits, minSimilarity, raw, realPrefixLength, scale_factor, termLength, terms, termText
 
Fields inherited from class org.apache.lucene.index.TermsEnum
EMPTY
 
Constructor Summary
SlowFuzzyTermsEnum(Terms terms, AttributeSource atts, Term term, float minSimilarity, int prefixLength)
          Deprecated.  
 
Method Summary
protected  void maxEditDistanceChanged(BytesRef lastTerm, int maxEdits, boolean init)
          Deprecated.  
 
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 org.apache.lucene.index.TermsEnum
attributes, docs, docsAndPositions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SlowFuzzyTermsEnum

public SlowFuzzyTermsEnum(Terms terms,
                          AttributeSource atts,
                          Term term,
                          float minSimilarity,
                          int prefixLength)
                   throws IOException
Deprecated. 
Throws:
IOException
Method Detail

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.