Class FuzzyTerm
- java.lang.Object
-
- org.apache.lucene.queryparser.flexible.standard.nodes.intervalfn.IntervalFunction
-
- org.apache.lucene.queryparser.flexible.standard.nodes.intervalfn.FuzzyTerm
-
public class FuzzyTerm extends IntervalFunction
An interval function equivalent toFuzzyQuery. A fuzzy term expands to a disjunction of intervals of terms that are within the specifiedmaxEditsfrom the provided term. A limit ofmaxExpansionsprevents the internal implementation from blowing up on too many potential candidate terms.
-
-
Field Summary
Fields Modifier and Type Field Description private intmaxEditsprivate java.lang.IntegermaxExpansionsprivate java.lang.Stringterm
-
Constructor Summary
Constructors Constructor Description FuzzyTerm(java.lang.String term, java.lang.Integer maxEdits, java.lang.Integer maxExpansions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntervalsSourcetoIntervalSource(java.lang.String field, Analyzer analyzer)java.lang.StringtoString()
-
-
-
Method Detail
-
toIntervalSource
public IntervalsSource toIntervalSource(java.lang.String field, Analyzer analyzer)
- Specified by:
toIntervalSourcein classIntervalFunction
-
toString
public java.lang.String toString()
- Specified by:
toStringin classIntervalFunction
-
-