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
TermsQueryDescriptor<T>
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
Overrides
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
Returns
Type Parameters
|
Edit this page
View Source
Terms<TValue>(IEnumerable<TValue>)
Declaration
public TermsQueryDescriptor<T> Terms<TValue>(IEnumerable<TValue> terms)
Parameters
Returns
Type Parameters
|
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 Parameters
Implements
Extension Methods