Search Results for

    Show / Hide Table of Contents

    Class TermsSetQueryDescriptor<T>

    Returns any documents that match with at least one or more of the provided terms. The terms are not analyzed and thus must match exactly. The number of terms that must match varies per document and is either controlled by a minimum should match field or computed per document in a minimum should match script.

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

    Methods

    | Edit this page View Source

    MinimumShouldMatchField(Field)

    A field containing the number of required terms that must match

    Declaration
    public TermsSetQueryDescriptor<T> MinimumShouldMatchField(Field field)
    Parameters
    Type Name Description
    Field field
    Returns
    Type Description
    TermsSetQueryDescriptor<T>
    | Edit this page View Source

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

    A field containing the number of required terms that must match

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

    MinimumShouldMatchScript(Func<ScriptDescriptor, IScript>)

    A script to control how many terms are required to match

    Declaration
    public TermsSetQueryDescriptor<T> MinimumShouldMatchScript(Func<ScriptDescriptor, IScript> scriptSelector)
    Parameters
    Type Name Description
    Func<ScriptDescriptor, IScript> scriptSelector
    Returns
    Type Description
    TermsSetQueryDescriptor<T>
    | Edit this page View Source

    Terms<TValue>(IEnumerable<TValue>)

    The required terms to match

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

    Terms<TValue>(params TValue[])

    The required terms to match

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

    Implements

    IDescriptor
    ITermsSetQuery
    IFieldNameQuery
    IQuery

    Extension Methods

    SuffixExtensions.Suffix(object, string)
    • Edit this page
    • View Source
    In this article
    • Properties
      • Conditionless
    • Methods
      • MinimumShouldMatchField(Field)
      • MinimumShouldMatchField<TValue>(Expression<Func<T, TValue>>)
      • MinimumShouldMatchScript(Func<ScriptDescriptor, IScript>)
      • Terms<TValue>(IEnumerable<TValue>)
      • Terms<TValue>(params TValue[])
    • Implements
    • Extension Methods
    Back to top Generated by DocFX