Class BoolQuery
Assembly: OpenSearch.Client.dll
Syntax
public class BoolQuery : QueryBase, IBoolQuery, IQuery
Properties
|
Edit this page
View Source
Conditionless
Declaration
protected override bool Conditionless { get; }
Property Value
Overrides
|
Edit this page
View Source
Filter
The clause (query) which is to be used as a filter (in filter context).
Declaration
public IEnumerable<QueryContainer> Filter { get; set; }
Property Value
|
Edit this page
View Source
MinimumShouldMatch
Specifies a minimum number of the optional BooleanClauses which must be satisfied.
Declaration
public MinimumShouldMatch MinimumShouldMatch { get; set; }
Property Value
|
Edit this page
View Source
Must
The clause(s) that must appear in matching documents
Declaration
public IEnumerable<QueryContainer> Must { get; set; }
Property Value
|
Edit this page
View Source
MustNot
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 IEnumerable<QueryContainer> MustNot { get; set; }
Property Value
|
Edit this page
View Source
Should
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.
Declaration
public IEnumerable<QueryContainer> Should { get; set; }
Property Value
Implements
Extension Methods