Class BooleanQuery
java.lang.Object
com.couchbase.client.java.search.queries.AbstractFtsQuery
com.couchbase.client.java.search.queries.BooleanQuery
@Uncommitted @Public public class BooleanQuery extends AbstractFtsQuery
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
Modifier and Type Method Description BooleanQuery
boost(double boost)
protected void
injectParams(JsonObject input)
Override to inject query-specific parameters when doing theSearchQuery.export()
.BooleanQuery
must(AbstractFtsQuery... mustQueries)
BooleanQuery
mustNot(AbstractFtsQuery... mustNotQueries)
BooleanQuery
should(AbstractFtsQuery... shouldQueries)
BooleanQuery
shouldMin(int minForShould)
Methods inherited from class com.couchbase.client.java.search.queries.AbstractFtsQuery
injectParamsAndBoost, toString
-
Constructor Details
-
BooleanQuery
public BooleanQuery()
-
-
Method Details
-
shouldMin
-
must
-
mustNot
-
should
-
boost
- Overrides:
boost
in classAbstractFtsQuery
-
injectParams
Description copied from class:AbstractFtsQuery
Override to inject query-specific parameters when doing theSearchQuery.export()
.- Specified by:
injectParams
in classAbstractFtsQuery
- Parameters:
input
- the preparedJsonObject
that will represent the query.
-