Search Results for

    Show / Hide Table of Contents

    Class SuggestOption<TDocument>

    Inheritance
    object
    SuggestOption<TDocument>
    Implements
    ISuggestOption<TDocument>
    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 SuggestOption<TDocument> : ISuggestOption<TDocument> where TDocument : class
    Type Parameters
    Name Description
    TDocument

    Properties

    | Edit this page View Source

    CollateMatch

    Phrase suggestions only, true if matching documents for the collate query were found,

    Declaration
    [DataMember(Name = "collate_match")]
    public bool CollateMatch { get; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    Contexts

    Completion suggester only, the contexts associated with the completed document

    Declaration
    [DataMember(Name = "contexts")]
    public IDictionary<string, IEnumerable<Context>> Contexts { get; }
    Property Value
    Type Description
    IDictionary<string, IEnumerable<Context>>
    | Edit this page View Source

    DocumentScore

    Declaration
    [DataMember(Name = "_score")]
    public double? DocumentScore { get; }
    Property Value
    Type Description
    double?
    | Edit this page View Source

    Fields

    Declaration
    [DataMember(Name = "fields")]
    public FieldValues Fields { get; }
    Property Value
    Type Description
    FieldValues
    | Edit this page View Source

    Frequency

    Term suggester only

    Declaration
    [DataMember(Name = "freq")]
    public long Frequency { get; set; }
    Property Value
    Type Description
    long
    | Edit this page View Source

    Highlighted

    Phrase suggester only, highlighted version of text

    Declaration
    [DataMember(Name = "highlighted")]
    public string Highlighted { get; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    Id

    Completion suggester only, the id of the completed document

    Declaration
    [DataMember(Name = "_id")]
    public string Id { get; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    Index

    Completion suggester only, the index of the completed document

    Declaration
    [DataMember(Name = "_index")]
    public IndexName Index { get; }
    Property Value
    Type Description
    IndexName
    | Edit this page View Source

    Score

    Either the DocumentScore or the SuggestScore

    Declaration
    [IgnoreDataMember]
    public double Score { get; }
    Property Value
    Type Description
    double
    | Edit this page View Source

    Source

    Completion suggester only, the source of the completed document

    Declaration
    [DataMember(Name = "_source")]
    public TDocument Source { get; }
    Property Value
    Type Description
    TDocument
    | Edit this page View Source

    SuggestScore

    Declaration
    [DataMember(Name = "score")]
    public double? SuggestScore { get; }
    Property Value
    Type Description
    double?
    | Edit this page View Source

    Text

    Declaration
    [DataMember(Name = "text")]
    public string Text { get; }
    Property Value
    Type Description
    string

    Implements

    ISuggestOption<TDocument>

    Extension Methods

    SuffixExtensions.Suffix(object, string)
    • Edit this page
    • View Source
    In this article
    • Properties
      • CollateMatch
      • Contexts
      • DocumentScore
      • Fields
      • Frequency
      • Highlighted
      • Id
      • Index
      • Score
      • Source
      • SuggestScore
      • Text
    • Implements
    • Extension Methods
    Back to top Generated by DocFX