Constructor SlowFuzzyQuery
SlowFuzzyQuery(Term, Single, Int32, Int32)
Create a new SlowFuzzyQuery 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 SlowFuzzyQuery(Term term, float minimumSimilarity, int prefixLength, int maxExpansions)
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
Alternatively, if |
System.Int32 | prefixLength | length of common (non-fuzzy) prefix |
System.Int32 | maxExpansions | the maximum number of terms to match. If this number is greater than MaxClauseCount when the query is rewritten, then the maxClauseCount will be used instead. |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | if |
SlowFuzzyQuery(Term, Single, Int32)
Calls SlowFuzzyQuery(Term, Single).
Declaration
public SlowFuzzyQuery(Term term, float minimumSimilarity, int prefixLength)
Parameters
Type | Name | Description |
---|---|---|
Term | term | |
System.Single | minimumSimilarity | |
System.Int32 | prefixLength |
SlowFuzzyQuery(Term, Single)
Calls SlowFuzzyQuery(Term, Single).
Declaration
public SlowFuzzyQuery(Term term, float minimumSimilarity)
Parameters
Type | Name | Description |
---|---|---|
Term | term | |
System.Single | minimumSimilarity |
SlowFuzzyQuery(Term)
Calls SlowFuzzyQuery(Term, Single).
Declaration
public SlowFuzzyQuery(Term term)
Parameters
Type | Name | Description |
---|---|---|
Term | term |