Class DisjunctionQuery
- java.lang.Object
-
- com.couchbase.client.java.search.SearchQuery
-
- com.couchbase.client.java.search.queries.AbstractCompoundQuery
-
- com.couchbase.client.java.search.queries.DisjunctionQuery
-
public class DisjunctionQuery extends AbstractCompoundQuery
A compound FTS query that performs a logical OR between all its sub-queries (disjunction). It requires that a minimum of the queries match. Theminimum
is configurable (default 1).- Since:
- 2.3.0
- Author:
- Simon Baslé, Michael Nitschinger
-
-
Constructor Summary
Constructors Constructor Description DisjunctionQuery(SearchQuery... queries)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DisjunctionQuery
boost(double boost)
protected void
injectParams(JsonObject input)
DisjunctionQuery
min(int min)
DisjunctionQuery
or(SearchQuery... queries)
-
Methods inherited from class com.couchbase.client.java.search.queries.AbstractCompoundQuery
addAll, childQueries
-
Methods inherited from class com.couchbase.client.java.search.SearchQuery
booleanField, booleans, conjuncts, dateRange, disjuncts, docId, export, geoBoundingBox, geoBoundingBox, geoDistance, geoDistance, geoPolygon, injectParamsAndBoost, match, matchAll, matchNone, matchPhrase, numericRange, phrase, prefix, queryString, regexp, term, termRange, toString, wildcard
-
-
-
-
Constructor Detail
-
DisjunctionQuery
public DisjunctionQuery(SearchQuery... queries)
-
-
Method Detail
-
boost
public DisjunctionQuery boost(double boost)
- Overrides:
boost
in classSearchQuery
-
min
public DisjunctionQuery min(int min)
-
or
public DisjunctionQuery or(SearchQuery... queries)
-
injectParams
protected void injectParams(JsonObject input)
- Specified by:
injectParams
in classSearchQuery
-
-