Search Results for

    Show / Hide Table of Contents

    Class SuggestFuzzinessDescriptor<T>

    Fuzziness options for a suggester

    Inheritance
    object
    DescriptorBase<SuggestFuzzinessDescriptor<T>, ISuggestFuzziness>
    SuggestFuzzinessDescriptor<T>
    Implements
    IDescriptor
    ISuggestFuzziness
    Inherited Members
    DescriptorBase<SuggestFuzzinessDescriptor<T>, ISuggestFuzziness>.Self
    DescriptorBase<SuggestFuzzinessDescriptor<T>, ISuggestFuzziness>.Assign<TValue>(TValue, Action<ISuggestFuzziness, TValue>)
    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 SuggestFuzzinessDescriptor<T> : DescriptorBase<SuggestFuzzinessDescriptor<T>, ISuggestFuzziness>, IDescriptor, ISuggestFuzziness where T : class
    Type Parameters
    Name Description
    T

    Methods

    | Edit this page View Source

    Fuzziness(Fuzziness)

    The fuzziness factor. defaults to AUTO

    Declaration
    public SuggestFuzzinessDescriptor<T> Fuzziness(Fuzziness fuzziness)
    Parameters
    Type Name Description
    Fuzziness fuzziness
    Returns
    Type Description
    SuggestFuzzinessDescriptor<T>
    | Edit this page View Source

    MinLength(int?)

    Minimum length of the input before fuzzy suggestions are returned. Defaults to 3

    Declaration
    public SuggestFuzzinessDescriptor<T> MinLength(int? length)
    Parameters
    Type Name Description
    int? length
    Returns
    Type Description
    SuggestFuzzinessDescriptor<T>
    | Edit this page View Source

    PrefixLength(int?)

    Minimum length of the input, which is not checked for fuzzy alternatives. Defaults to 1

    Declaration
    public SuggestFuzzinessDescriptor<T> PrefixLength(int? length)
    Parameters
    Type Name Description
    int? length
    Returns
    Type Description
    SuggestFuzzinessDescriptor<T>
    | Edit this page View Source

    Transpositions(bool?)

    if set to true, transpositions are counted as one change instead of two. Defaults to true

    Declaration
    public SuggestFuzzinessDescriptor<T> Transpositions(bool? transpositions = true)
    Parameters
    Type Name Description
    bool? transpositions
    Returns
    Type Description
    SuggestFuzzinessDescriptor<T>
    | Edit this page View Source

    UnicodeAware(bool?)

    If true, all measurements (like fuzzy edit distance, transpositions, and lengths) are measured in Unicode code points instead of in bytes. This is slightly slower than raw bytes, so it is set to false by default.

    Declaration
    public SuggestFuzzinessDescriptor<T> UnicodeAware(bool? aware = true)
    Parameters
    Type Name Description
    bool? aware
    Returns
    Type Description
    SuggestFuzzinessDescriptor<T>

    Implements

    IDescriptor
    ISuggestFuzziness

    Extension Methods

    SuffixExtensions.Suffix(object, string)
    • Edit this page
    • View Source
    In this article
    • Methods
      • Fuzziness(Fuzziness)
      • MinLength(int?)
      • PrefixLength(int?)
      • Transpositions(bool?)
      • UnicodeAware(bool?)
    • Implements
    • Extension Methods
    Back to top Generated by DocFX