Search Results for

    Show / Hide Table of Contents

    Class Fuzziness

    Inheritance
    object
    Fuzziness
    Implements
    IFuzziness
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: OpenSearch.Client
    Assembly: OpenSearch.Client.dll
    Syntax
    public class Fuzziness : IFuzziness

    Properties

    | Edit this page View Source

    Auto

    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.

    Auto should generally be the preferred value for Fuzziness

    Methods

    | Edit this page View Source

    AutoLength(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
    | Edit this page View Source

    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
    | Edit this page View Source

    Ratio(double)

    Declaration
    public static Fuzziness Ratio(double ratio)
    Parameters
    Type Name Description
    double ratio
    Returns
    Type Description
    Fuzziness

    Implements

    IFuzziness

    Extension Methods

    SuffixExtensions.Suffix(object, string)
    • Edit this page
    • View Source
    In this article
    • Properties
      • Auto
    • Methods
      • AutoLength(int, int)
      • EditDistance(int)
      • Ratio(double)
    • Implements
    • Extension Methods
    Back to top Generated by DocFX