Class BooleanQuery
- java.lang.Object
-
- com.couchbase.client.java.search.SearchQuery
-
- com.couchbase.client.java.search.queries.BooleanQuery
-
public class BooleanQuery extends SearchQuery
A compound FTS query that allows various combinations of sub-queries.- Since:
- 2.3.0
- Author:
- Simon Baslé, Michael Nitschinger
-
-
Constructor Summary
Constructors Constructor Description BooleanQuery()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleanQuery
boost(double boost)
protected void
injectParams(JsonObject input)
BooleanQuery
must(SearchQuery... mustQueries)
BooleanQuery
mustNot(SearchQuery... mustNotQueries)
BooleanQuery
should(SearchQuery... shouldQueries)
BooleanQuery
shouldMin(int minForShould)
-
Methods inherited from class com.couchbase.client.java.search.SearchQuery
booleanField, booleans, conjuncts, dateRange, disjuncts, docId, export, geoBoundingBox, geoDistance, injectParamsAndBoost, match, matchAll, matchNone, matchPhrase, numericRange, phrase, prefix, queryString, regexp, term, termRange, toString, wildcard
-
-
-
-
Method Detail
-
shouldMin
public BooleanQuery shouldMin(int minForShould)
-
must
public BooleanQuery must(SearchQuery... mustQueries)
-
mustNot
public BooleanQuery mustNot(SearchQuery... mustNotQueries)
-
should
public BooleanQuery should(SearchQuery... shouldQueries)
-
boost
public BooleanQuery boost(double boost)
- Overrides:
boost
in classSearchQuery
-
injectParams
protected void injectParams(JsonObject input)
- Specified by:
injectParams
in classSearchQuery
-
-