Class BoolQueryDescriptor<T>
Inheritance
BoolQueryDescriptor<T>
Assembly: OpenSearch.Client.dll
Syntax
public class BoolQueryDescriptor<T> : QueryDescriptorBase<BoolQueryDescriptor<T>, IBoolQuery>, IDescriptor, IBoolQuery, IQuery 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
Filter(params QueryContainer[])
The clause (query) which is to be used as a filter (in filter context).
Declaration
public BoolQueryDescriptor<T> Filter(params QueryContainer[] queries)
Parameters
Returns
|
Edit this page
View Source
Filter(IEnumerable<Func<QueryContainerDescriptor<T>, QueryContainer>>)
The clause (query) which is to be used as a filter (in filter context).
Declaration
public BoolQueryDescriptor<T> Filter(IEnumerable<Func<QueryContainerDescriptor<T>, QueryContainer>> queries)
Parameters
Returns
|
Edit this page
View Source
Filter(params Func<QueryContainerDescriptor<T>, QueryContainer>[])
The clause (query) which is to be used as a filter (in filter context).
Declaration
public BoolQueryDescriptor<T> Filter(params Func<QueryContainerDescriptor<T>, QueryContainer>[] queries)
Parameters
Returns
|
Edit this page
View Source
MinimumShouldMatch(MinimumShouldMatch)
Specifies a minimum number of the optional BooleanClauses which must be satisfied.
Declaration
public BoolQueryDescriptor<T> MinimumShouldMatch(MinimumShouldMatch minimumShouldMatches)
Parameters
Returns
|
Edit this page
View Source
Must(params QueryContainer[])
The clause(s) that must appear in matching documents
Declaration
public BoolQueryDescriptor<T> Must(params QueryContainer[] queries)
Parameters
Returns
|
Edit this page
View Source
Must(IEnumerable<Func<QueryContainerDescriptor<T>, QueryContainer>>)
The clause(s) that must appear in matching documents
Declaration
public BoolQueryDescriptor<T> Must(IEnumerable<Func<QueryContainerDescriptor<T>, QueryContainer>> queries)
Parameters
Returns
|
Edit this page
View Source
Must(params Func<QueryContainerDescriptor<T>, QueryContainer>[])
The clause(s) that must appear in matching documents
Declaration
public BoolQueryDescriptor<T> Must(params Func<QueryContainerDescriptor<T>, QueryContainer>[] queries)
Parameters
Returns
|
Edit this page
View Source
MustNot(params QueryContainer[])
The clause (query) must not appear in the matching documents. Note that it is not possible to search on documents that only consists of a
must_not clauses.
Declaration
public BoolQueryDescriptor<T> MustNot(params QueryContainer[] queries)
Parameters
Returns
|
Edit this page
View Source
MustNot(IEnumerable<Func<QueryContainerDescriptor<T>, QueryContainer>>)
The clause (query) must not appear in the matching documents. Note that it is not possible to search on documents that only consists of a
must_not clauses.
Declaration
public BoolQueryDescriptor<T> MustNot(IEnumerable<Func<QueryContainerDescriptor<T>, QueryContainer>> queries)
Parameters
Returns
|
Edit this page
View Source
MustNot(params Func<QueryContainerDescriptor<T>, QueryContainer>[])
The clause (query) must not appear in the matching documents. Note that it is not possible to search on documents that only consists of a
must_not clauses.
Declaration
public BoolQueryDescriptor<T> MustNot(params Func<QueryContainerDescriptor<T>, QueryContainer>[] queries)
Parameters
Returns
|
Edit this page
View Source
Should(params QueryContainer[])
The clause (query) should appear in the matching document. A boolean query with no must clauses, one or more should clauses must match a
document.
The minimum number of should clauses to match can be set using MinimumShouldMatch(MinimumShouldMatch).
Declaration
public BoolQueryDescriptor<T> Should(params QueryContainer[] queries)
Parameters
Returns
|
Edit this page
View Source
Should(IEnumerable<Func<QueryContainerDescriptor<T>, QueryContainer>>)
The clause (query) should appear in the matching document. A boolean query with no must clauses, one or more should clauses must match a
document.
The minimum number of should clauses to match can be set using MinimumShouldMatch(MinimumShouldMatch).
Declaration
public BoolQueryDescriptor<T> Should(IEnumerable<Func<QueryContainerDescriptor<T>, QueryContainer>> queries)
Parameters
Returns
|
Edit this page
View Source
Should(params Func<QueryContainerDescriptor<T>, QueryContainer>[])
The clause (query) should appear in the matching document. A boolean query with no must clauses, one or more should clauses must match a
document.
The minimum number of should clauses to match can be set using MinimumShouldMatch(MinimumShouldMatch).
Declaration
public BoolQueryDescriptor<T> Should(params Func<QueryContainerDescriptor<T>, QueryContainer>[] queries)
Parameters
Returns
Implements
Extension Methods