Class Fuzziness
Implements
Inherited Members
Namespace: OpenSearch.Client
Assembly: OpenSearch.Client.dll
Syntax
public class Fuzziness : IFuzziness
Properties
| Edit this page View SourceAuto
Generates an edit distance based on the length of the term.
Declaration
public static Fuzziness Auto { get; }
Property Value
Type | Description |
---|---|
Fuzziness |
Remarks
Equivalent to AutoLength(int, int) with parameters 3 and 6.
Methods
| Edit this page View SourceAutoLength(int, int)
Generates an edit distance based on the length of the term.
Declaration
public static Fuzziness AutoLength(int low, int high)
Parameters
Type | Name | Description |
---|---|---|
int | low | Must match exactly for terms with less length |
int | high | Two edits allowed for terms with greater length |
Returns
Type | Description |
---|---|
Fuzziness |
EditDistance(int)
The maximum allowed Levenshtein Edit Distance (or number of edits)
Declaration
public static Fuzziness EditDistance(int distance)
Parameters
Type | Name | Description |
---|---|---|
int | distance | Levenshtein Edit Distance |
Returns
Type | Description |
---|---|
Fuzziness |
Ratio(double)
Declaration
public static Fuzziness Ratio(double ratio)
Parameters
Type | Name | Description |
---|---|---|
double | ratio |
Returns
Type | Description |
---|---|
Fuzziness |