org.apache.lucene.search
Class FuzzyQuery

java.lang.Object
  extended byorg.apache.lucene.search.Query
      extended byorg.apache.lucene.search.MultiTermQuery
          extended byorg.apache.lucene.search.FuzzyQuery
All Implemented Interfaces:
Cloneable, Serializable

public final class FuzzyQuery
extends MultiTermQuery

Implements the fuzzy search query

See Also:
Serialized Form

Constructor Summary
FuzzyQuery(Term term)
           
 
Method Summary
protected  FilteredTermEnum getEnum(IndexReader reader)
          Construct the enumeration to be used, expanding the pattern term.
 String toString(String field)
          Prints a user-readable version of this query.
 
Methods inherited from class org.apache.lucene.search.MultiTermQuery
combine, getTerm, rewrite
 
Methods inherited from class org.apache.lucene.search.Query
clone, createWeight, getBoost, mergeBooleanQueries, setBoost, toString, weight
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FuzzyQuery

public FuzzyQuery(Term term)
Method Detail

getEnum

protected FilteredTermEnum getEnum(IndexReader reader)
                            throws IOException
Description copied from class: MultiTermQuery
Construct the enumeration to be used, expanding the pattern term.

Specified by:
getEnum in class MultiTermQuery
Throws:
IOException

toString

public String toString(String field)
Description copied from class: MultiTermQuery
Prints a user-readable version of this query.

Overrides:
toString in class MultiTermQuery


Copyright © 2000-2003 Apache Software Foundation. All Rights Reserved.