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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleanQueryboost(double boost)protected voidinjectParams(JsonObject input)Override to inject query-specific parameters when doing theSearchQuery.export().BooleanQuerymust(AbstractFtsQuery... mustQueries)BooleanQuerymustNot(AbstractFtsQuery... mustNotQueries)BooleanQueryshould(AbstractFtsQuery... shouldQueries)BooleanQueryshouldMin(int minForShould)-
Methods inherited from class com.couchbase.client.java.search.queries.AbstractFtsQuery
injectParamsAndBoost, toString
-
-
-
-
Method Detail
-
shouldMin
public BooleanQuery shouldMin(int minForShould)
-
must
public BooleanQuery must(AbstractFtsQuery... mustQueries)
-
mustNot
public BooleanQuery mustNot(AbstractFtsQuery... mustNotQueries)
-
should
public BooleanQuery should(AbstractFtsQuery... shouldQueries)
-
boost
public BooleanQuery boost(double boost)
- Overrides:
boostin classAbstractFtsQuery
-
injectParams
protected void injectParams(JsonObject input)
Description copied from class:AbstractFtsQueryOverride to inject query-specific parameters when doing theSearchQuery.export().- Specified by:
injectParamsin classAbstractFtsQuery- Parameters:
input- the preparedJsonObjectthat will represent the query.
-
-