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
IntervalsQueryDescriptor<T>
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
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
Overrides
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
Returns
|
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
Returns
|
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
Returns
|
Edit this page
View Source
Match(Func<IntervalsMatchDescriptor, IIntervalsMatch>)
Matches the analyzed text
Declaration
public IntervalsQueryDescriptor<T> Match(Func<IntervalsMatchDescriptor, IIntervalsMatch> selector)
Parameters
Returns
|
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
Returns
|
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
Returns
Implements
Extension Methods