@InterfaceStability.Experimental @InterfaceAudience.Public public class BooleanQuery extends AbstractFtsQuery
A compound FTS query that allows various combinations of sub-queries.
Constructor and Description |
---|
BooleanQuery() |
Modifier and Type | Method and Description |
---|---|
BooleanQuery |
boost(double boost) |
protected void |
injectParams(JsonObject input)
Override to inject query-specific parameters when doing the
SearchQuery.export() . |
BooleanQuery |
must(AbstractFtsQuery... mustQueries) |
BooleanQuery |
mustNot(AbstractFtsQuery... mustNotQueries) |
BooleanQuery |
should(AbstractFtsQuery... shouldQueries) |
BooleanQuery |
shouldMin(int minForShould) |
injectParamsAndBoost, toString
public BooleanQuery shouldMin(int minForShould)
public BooleanQuery must(AbstractFtsQuery... mustQueries)
public BooleanQuery mustNot(AbstractFtsQuery... mustNotQueries)
public BooleanQuery should(AbstractFtsQuery... shouldQueries)
public BooleanQuery boost(double boost)
boost
in class AbstractFtsQuery
protected void injectParams(JsonObject input)
AbstractFtsQuery
Override to inject query-specific parameters when doing the SearchQuery.export()
.
injectParams
in class AbstractFtsQuery
input
- the prepared JsonObject
that will represent the query.Copyright © 2015 Couchbase, Inc.