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