Constructor FuzzyQuery
FuzzyQuery(Term, Single, Int32)
Create a new FuzzyQuery that will match terms with a similarity
of at least minimumSimilarity
to term
.
If a prefixLength
> 0 is specified, a common prefix
of that length is also required.
Declaration
public FuzzyQuery(Term term, float minimumSimilarity, int prefixLength)
Parameters
Type | Name | Description |
---|---|---|
Term | term | the term to search for |
System.Single | minimumSimilarity | a value between 0 and 1 to set the required similarity
between the query term and the matching terms. For example, for a
|
System.Int32 | prefixLength | length of common (non-fuzzy) prefix |
FuzzyQuery(Term, Single)
Calls FuzzyQuery(Term, Single).
Declaration
public FuzzyQuery(Term term, float minimumSimilarity)
Parameters
Type | Name | Description |
---|---|---|
Term | term | |
System.Single | minimumSimilarity |
FuzzyQuery(Term)
Calls FuzzyQuery(Term, Single).
Declaration
public FuzzyQuery(Term term)
Parameters
Type | Name | Description |
---|---|---|
Term | term |