Class BooleanQuery
A combination of conjunction and disjunction queries.
Assembly: Couchbase.NetClient.dll
Syntax
public class BooleanQuery : SearchQueryBase, ISearchQuery
Methods
|
Edit this page
View Source
AsReadOnly()
Declaration
public BooleanQuery.ReadOnly AsReadOnly()
Returns
|
Edit this page
View Source
Deconstruct(out ConjunctionQuery?, out DisjunctionQuery?, out DisjunctionQuery?)
Declaration
public void Deconstruct(out ConjunctionQuery? mustQueries, out DisjunctionQuery? shouldQueries, out DisjunctionQuery? mustNotQueries)
Parameters
|
Edit this page
View Source
Export()
Gets a JSON object representing this query instance />
Declaration
public override JObject Export()
Returns
Overrides
|
Edit this page
View Source
Must(params ISearchQuery[])
Result documents must satisfy these queries.
Declaration
public BooleanQuery Must(params ISearchQuery[] queries)
Parameters
Returns
|
Edit this page
View Source
MustNot(params ISearchQuery[])
Result documents must not satisfy these queries.
Declaration
public BooleanQuery MustNot(params ISearchQuery[] queries)
Parameters
Returns
|
Edit this page
View Source
Should(params ISearchQuery[])
Result documents should satisfy these queries..
Declaration
public BooleanQuery Should(params ISearchQuery[] queries)
Parameters
Returns
|
Edit this page
View Source
ShouldMin(int)
If a hit satisfies at least min queries in the should be boosted by this amount.
Declaration
public BooleanQuery ShouldMin(int min)
Parameters
Type |
Name |
Description |
int |
min |
The minimum to boost by - the default is 1.
|
Returns
Implements
See Also