Search Results for

    Show / Hide Table of Contents

    Class IntervalsQueryDescriptor<T>

    A query that allows fine-grained control over the order and proximity of matching terms. Matching rules are constructed from a small set of definitions, and the rules are then applied to terms from a particular field. The definitions produce sequences of minimal intervals that span terms in a body of text. These intervals can be further combined and filtered by parent sources.

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

    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<IntervalsQueryDescriptor<T>, IIntervalsQuery>.Conditionless

    Methods

    | Edit this page View Source

    AllOf(Func<IntervalsAllOfDescriptor, IIntervalsAllOf>)

    A rule that returns matches that span a combination of other rules.

    Declaration
    public IntervalsQueryDescriptor<T> AllOf(Func<IntervalsAllOfDescriptor, IIntervalsAllOf> selector)
    Parameters
    Type Name Description
    Func<IntervalsAllOfDescriptor, IIntervalsAllOf> selector
    Returns
    Type Description
    IntervalsQueryDescriptor<T>
    | Edit this page View Source

    AnyOf(Func<IntervalsAnyOfDescriptor, IIntervalsAnyOf>)

    A rule that emits intervals produced by any of its sub-rules.

    Declaration
    public IntervalsQueryDescriptor<T> AnyOf(Func<IntervalsAnyOfDescriptor, IIntervalsAnyOf> selector)
    Parameters
    Type Name Description
    Func<IntervalsAnyOfDescriptor, IIntervalsAnyOf> selector
    Returns
    Type Description
    IntervalsQueryDescriptor<T>
    | Edit this page View Source

    Fuzzy(Func<IntervalsFuzzyDescriptor, IIntervalsFuzzy>)

    The fuzzy rule matches terms that are similar to the provided term, within an edit distance defined by Fuzziness. If the fuzzy expansion matches more than 128 terms, OpenSearch returns an error.

    Declaration
    public IntervalsQueryDescriptor<T> Fuzzy(Func<IntervalsFuzzyDescriptor, IIntervalsFuzzy> selector)
    Parameters
    Type Name Description
    Func<IntervalsFuzzyDescriptor, IIntervalsFuzzy> selector
    Returns
    Type Description
    IntervalsQueryDescriptor<T>
    | Edit this page View Source

    Match(Func<IntervalsMatchDescriptor, IIntervalsMatch>)

    Matches the analyzed text

    Declaration
    public IntervalsQueryDescriptor<T> Match(Func<IntervalsMatchDescriptor, IIntervalsMatch> selector)
    Parameters
    Type Name Description
    Func<IntervalsMatchDescriptor, IIntervalsMatch> selector
    Returns
    Type Description
    IntervalsQueryDescriptor<T>
    | Edit this page View Source

    Prefix(Func<IntervalsPrefixDescriptor, IIntervalsPrefix>)

    Matches terms that start with a specified set of characters. This prefix can expand to match at most 128 terms. If the prefix matches more than 128 terms, OpenSearch returns an error. You can use the index-prefixes option in the field mapping to avoid this limit.

    Declaration
    public IntervalsQueryDescriptor<T> Prefix(Func<IntervalsPrefixDescriptor, IIntervalsPrefix> selector)
    Parameters
    Type Name Description
    Func<IntervalsPrefixDescriptor, IIntervalsPrefix> selector
    Returns
    Type Description
    IntervalsQueryDescriptor<T>
    | Edit this page View Source

    Wildcard(Func<IntervalsWildcardDescriptor, IIntervalsWildcard>)

    Matches terms using a wildcard pattern. This pattern can expand to match at most 128 terms. If the pattern matches more than 128 terms, OpenSearch returns an error.

    Declaration
    public IntervalsQueryDescriptor<T> Wildcard(Func<IntervalsWildcardDescriptor, IIntervalsWildcard> selector)
    Parameters
    Type Name Description
    Func<IntervalsWildcardDescriptor, IIntervalsWildcard> selector
    Returns
    Type Description
    IntervalsQueryDescriptor<T>

    Implements

    IDescriptor
    IIntervalsQuery
    IFieldNameQuery
    IQuery
    IIntervalsContainer

    Extension Methods

    SuffixExtensions.Suffix(object, string)
    • Edit this page
    • View Source
    In this article
    • Properties
      • Conditionless
    • Methods
      • AllOf(Func<IntervalsAllOfDescriptor, IIntervalsAllOf>)
      • AnyOf(Func<IntervalsAnyOfDescriptor, IIntervalsAnyOf>)
      • Fuzzy(Func<IntervalsFuzzyDescriptor, IIntervalsFuzzy>)
      • Match(Func<IntervalsMatchDescriptor, IIntervalsMatch>)
      • Prefix(Func<IntervalsPrefixDescriptor, IIntervalsPrefix>)
      • Wildcard(Func<IntervalsWildcardDescriptor, IIntervalsWildcard>)
    • Implements
    • Extension Methods
    Back to top Generated by DocFX