Search Results for

    Show / Hide Table of Contents

    Class TermsQueryDescriptor<T>

    A query that match on any (configurable) of the provided terms. This is a simpler syntax query for using a bool query with several term queries in the should clauses.

    Inheritance
    object
    DescriptorBase<TermsQueryDescriptor<T>, ITermsQuery>
    QueryDescriptorBase<TermsQueryDescriptor<T>, ITermsQuery>
    FieldNameQueryDescriptorBase<TermsQueryDescriptor<T>, ITermsQuery, T>
    TermsQueryDescriptor<T>
    Implements
    IDescriptor
    ITermsQuery
    IFieldNameQuery
    IQuery
    Inherited Members
    FieldNameQueryDescriptorBase<TermsQueryDescriptor<T>, ITermsQuery, T>.Field(Field)
    FieldNameQueryDescriptorBase<TermsQueryDescriptor<T>, ITermsQuery, T>.Field<TValue>(Expression<Func<T, TValue>>)
    QueryDescriptorBase<TermsQueryDescriptor<T>, ITermsQuery>.Conditionless
    QueryDescriptorBase<TermsQueryDescriptor<T>, ITermsQuery>.Name(string)
    QueryDescriptorBase<TermsQueryDescriptor<T>, ITermsQuery>.Boost(double?)
    QueryDescriptorBase<TermsQueryDescriptor<T>, ITermsQuery>.Verbatim(bool)
    QueryDescriptorBase<TermsQueryDescriptor<T>, ITermsQuery>.Strict(bool)
    DescriptorBase<TermsQueryDescriptor<T>, ITermsQuery>.Self
    DescriptorBase<TermsQueryDescriptor<T>, ITermsQuery>.Assign<TValue>(TValue, Action<ITermsQuery, 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 class TermsQueryDescriptor<T> : FieldNameQueryDescriptorBase<TermsQueryDescriptor<T>, ITermsQuery, T>, IDescriptor, ITermsQuery, IFieldNameQuery, IQuery where T : class
    Type Parameters
    Name Description
    T

    The type that represents the expected hit type

    Properties

    | Edit this page View Source

    Conditionless

    Whether the query is conditionless. A conditionless query is not serialized as part of the request sent to OpenSearch.

    Declaration
    protected override bool Conditionless { get; }
    Property Value
    Type Description
    bool
    Overrides
    QueryDescriptorBase<TermsQueryDescriptor<T>, ITermsQuery>.Conditionless

    Methods

    | Edit this page View Source

    TermsLookup<TOther>(Func<FieldLookupDescriptor<TOther>, IFieldLookup>)

    Declaration
    public TermsQueryDescriptor<T> TermsLookup<TOther>(Func<FieldLookupDescriptor<TOther>, IFieldLookup> selector) where TOther : class
    Parameters
    Type Name Description
    Func<FieldLookupDescriptor<TOther>, IFieldLookup> selector
    Returns
    Type Description
    TermsQueryDescriptor<T>
    Type Parameters
    Name Description
    TOther
    | Edit this page View Source

    Terms<TValue>(IEnumerable<TValue>)

    Declaration
    public TermsQueryDescriptor<T> Terms<TValue>(IEnumerable<TValue> terms)
    Parameters
    Type Name Description
    IEnumerable<TValue> terms
    Returns
    Type Description
    TermsQueryDescriptor<T>
    Type Parameters
    Name Description
    TValue
    | Edit this page View Source

    Terms<TValue>(params TValue[])

    Declaration
    public TermsQueryDescriptor<T> Terms<TValue>(params TValue[] terms)
    Parameters
    Type Name Description
    TValue[] terms
    Returns
    Type Description
    TermsQueryDescriptor<T>
    Type Parameters
    Name Description
    TValue

    Implements

    IDescriptor
    ITermsQuery
    IFieldNameQuery
    IQuery

    Extension Methods

    SuffixExtensions.Suffix(object, string)
    • Edit this page
    • View Source
    In this article
    • Properties
      • Conditionless
    • Methods
      • TermsLookup<TOther>(Func<FieldLookupDescriptor<TOther>, IFieldLookup>)
      • Terms<TValue>(IEnumerable<TValue>)
      • Terms<TValue>(params TValue[])
    • Implements
    • Extension Methods
    Back to top Generated by DocFX