Class DocIdQuery
- java.lang.Object
-
- com.couchbase.client.java.search.SearchQuery
-
- com.couchbase.client.java.search.queries.DocIdQuery
-
public class DocIdQuery extends SearchQuery
A FTS query that matches on Couchbase document IDs. Useful to restrict the search space to a list of keys (by using this in acompound query
).- Since:
- 2.3.0
- Author:
- Simon Baslé, Michael Nitschinger
-
-
Field Summary
-
Fields inherited from class com.couchbase.client.java.search.SearchQuery
boost
-
-
Constructor Summary
Constructors Constructor Description DocIdQuery(String... docIds)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DocIdQuery
boost(double boost)
DocIdQuery
docIds(String... docIds)
com.couchbase.client.core.api.search.CoreSearchQuery
toCore()
-
Methods inherited from class com.couchbase.client.java.search.SearchQuery
booleanField, booleans, conjuncts, dateRange, disjuncts, docId, export, geoBoundingBox, geoBoundingBox, geoDistance, geoDistance, geoPolygon, match, matchAll, matchNone, matchPhrase, numericRange, phrase, prefix, queryString, regexp, term, termRange, toString, wildcard
-
-
-
-
Constructor Detail
-
DocIdQuery
public DocIdQuery(String... docIds)
-
-
Method Detail
-
docIds
public DocIdQuery docIds(String... docIds)
-
boost
public DocIdQuery boost(double boost)
- Overrides:
boost
in classSearchQuery
-
toCore
public com.couchbase.client.core.api.search.CoreSearchQuery toCore()
- Specified by:
toCore
in classSearchQuery
-
-