Constructor FuzzyQuery
FuzzyQuery(Term, Int32, Int32, Int32, Boolean)
Create a new FuzzyQuery that will match terms with an edit distance
of at most maxEdits
to term
.
If a prefixLength
> 0 is specified, a common prefix
of that length is also required.
Declaration
public FuzzyQuery(Term term, int maxEdits, int prefixLength, int maxExpansions, bool transpositions)
Parameters
Type | Name | Description |
---|---|---|
Term | term | The term to search for |
System.Int32 | maxEdits | Must be >= 0 and <= MAXIMUM_SUPPORTED_DISTANCE. |
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. |
System.Boolean | transpositions |
|
FuzzyQuery(Term, Int32, Int32)
Declaration
public FuzzyQuery(Term term, int maxEdits, int prefixLength)
Parameters
Type | Name | Description |
---|---|---|
Term | term | |
System.Int32 | maxEdits | |
System.Int32 | prefixLength |
FuzzyQuery(Term, Int32)
Declaration
public FuzzyQuery(Term term, int maxEdits)
Parameters
Type | Name | Description |
---|---|---|
Term | term | |
System.Int32 | maxEdits |
FuzzyQuery(Term)
Calls FuzzyQuery(Term, Int32).
Declaration
public FuzzyQuery(Term term)
Parameters
Type | Name | Description |
---|---|---|
Term | term |