Search Results for

    Show / Hide Table of Contents

    Interface IHit<TDocument>

    A hit matching a query

    Inherited Members
    IHitMetadata<TDocument>.Id
    IHitMetadata<TDocument>.Index
    IHitMetadata<TDocument>.PrimaryTerm
    IHitMetadata<TDocument>.Routing
    IHitMetadata<TDocument>.SequenceNumber
    IHitMetadata<TDocument>.Source
    IHitMetadata<TDocument>.Type
    IHitMetadata<TDocument>.Version
    Namespace: OpenSearch.Client
    Assembly: OpenSearch.Client.dll
    Syntax
    public interface IHit<out TDocument> : IHitMetadata<TDocument> where TDocument : class
    Type Parameters
    Name Description
    TDocument

    The type of the source document

    Properties

    | Edit this page View Source

    Explanation

    An explanation for why the hit is a match for a query

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

    Fields

    The individual fields requested for a hit

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

    Highlight

    The field highlights

    Declaration
    [DataMember(Name = "highlight")]
    IReadOnlyDictionary<string, IReadOnlyCollection<string>> Highlight { get; }
    Property Value
    Type Description
    IReadOnlyDictionary<string, IReadOnlyCollection<string>>
    | Edit this page View Source

    InnerHits

    The inner hits

    Declaration
    [DataMember(Name = "inner_hits")]
    IReadOnlyDictionary<string, InnerHitsResult> InnerHits { get; }
    Property Value
    Type Description
    IReadOnlyDictionary<string, InnerHitsResult>
    | Edit this page View Source

    MatchedQueries

    Which queries the hit is a match for, when a compound query is involved and named queries used

    Declaration
    [DataMember(Name = "matched_queries")]
    IReadOnlyCollection<string> MatchedQueries { get; }
    Property Value
    Type Description
    IReadOnlyCollection<string>
    | Edit this page View Source

    Nested

    Declaration
    [DataMember(Name = "_nested")]
    NestedIdentity Nested { get; }
    Property Value
    Type Description
    NestedIdentity
    | Edit this page View Source

    Score

    The score for the hit in relation to the query

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

    Sorts

    The sort values used in sorting the hit relative to other hits

    Declaration
    [DataMember(Name = "sort")]
    IReadOnlyCollection<object> Sorts { get; }
    Property Value
    Type Description
    IReadOnlyCollection<object>

    Extension Methods

    SuffixExtensions.Suffix(object, string)
    • Edit this page
    • View Source
    In this article
    • Properties
      • Explanation
      • Fields
      • Highlight
      • InnerHits
      • MatchedQueries
      • Nested
      • Score
      • Sorts
    • Extension Methods
    Back to top Generated by DocFX