Search Results for

    Show / Hide Table of Contents

    Class SuggestDescriptorBase<TDescriptor, TInterface, T>

    A suggester that suggests similar looking terms based on a provided text

    Inheritance
    object
    DescriptorBase<TDescriptor, TInterface>
    SuggestDescriptorBase<TDescriptor, TInterface, T>
    CompletionSuggesterDescriptor<T>
    PhraseSuggesterDescriptor<T>
    TermSuggesterDescriptor<T>
    Implements
    IDescriptor
    ISuggester
    Inherited Members
    DescriptorBase<TDescriptor, TInterface>.Self
    DescriptorBase<TDescriptor, TInterface>.Assign<TValue>(TValue, Action<TInterface, 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
    [DataContract]
    public abstract class SuggestDescriptorBase<TDescriptor, TInterface, T> : DescriptorBase<TDescriptor, TInterface>, IDescriptor, ISuggester where TDescriptor : SuggestDescriptorBase<TDescriptor, TInterface, T>, TInterface, ISuggester where TInterface : class, ISuggester
    Type Parameters
    Name Description
    TDescriptor
    TInterface
    T

    Methods

    | Edit this page View Source

    Analyzer(string)

    The analyzer to analyse the suggest text with. Defaults to the search analyzer of the suggest field.

    Declaration
    public TDescriptor Analyzer(string analyzer)
    Parameters
    Type Name Description
    string analyzer
    Returns
    Type Description
    TDescriptor
    | Edit this page View Source

    Field(Field)

    The name of the field on which to run the query

    Declaration
    public TDescriptor Field(Field field)
    Parameters
    Type Name Description
    Field field
    Returns
    Type Description
    TDescriptor
    | Edit this page View Source

    Field<TValue>(Expression<Func<T, TValue>>)

    The name of the field on which to run the query

    Declaration
    public TDescriptor Field<TValue>(Expression<Func<T, TValue>> objectPath)
    Parameters
    Type Name Description
    Expression<Func<T, TValue>> objectPath
    Returns
    Type Description
    TDescriptor
    Type Parameters
    Name Description
    TValue
    | Edit this page View Source

    Size(int?)

    The number of suggestions to return. Defaults to 5

    Declaration
    public TDescriptor Size(int? size)
    Parameters
    Type Name Description
    int? size
    Returns
    Type Description
    TDescriptor

    Implements

    IDescriptor
    ISuggester

    Extension Methods

    SuffixExtensions.Suffix(object, string)
    • Edit this page
    • View Source
    In this article
    • Methods
      • Analyzer(string)
      • Field(Field)
      • Field<TValue>(Expression<Func<T, TValue>>)
      • Size(int?)
    • Implements
    • Extension Methods
    Back to top Generated by DocFX