Constructor FuzzyTermsEnum
FuzzyTermsEnum(Terms, AttributeSource, Term, Single, Int32, Boolean)
Constructor for enumeration of all terms from specified reader
which share a prefix of
length prefixLength
with term
and which have a fuzzy similarity >
minSimilarity
.
After calling the constructor the enumeration is already pointing to the first valid term if such a term exists.
Declaration
public FuzzyTermsEnum(Terms terms, AttributeSource atts, Term term, float minSimilarity, int prefixLength, bool transpositions)
Parameters
Type | Name | Description |
---|---|---|
Terms | terms | Delivers terms. |
AttributeSource | atts | AttributeSource created by the rewrite method of MultiTermQuery thats contains information about competitive boosts during rewrite. It is also used to cache DFAs between segment transitions. |
Term | term | Pattern term. |
System.Single | minSimilarity | Minimum required similarity for terms from the reader. Pass an integer value representing edit distance. Passing a fraction is deprecated. |
System.Int32 | prefixLength | Length of required common prefix. Default value is 0. |
System.Boolean | transpositions | Transpositions |