@InterfaceStability.Uncommitted @InterfaceAudience.Public public class DocIdQuery extends AbstractFtsQuery
A FTS query that matches on Couchbase document IDs. Useful to restrict the search space to a list of keys (by using this in a compound query
).
Constructor and Description |
---|
DocIdQuery(String... docIds) |
Modifier and Type | Method and Description |
---|---|
DocIdQuery |
boost(double boost) |
DocIdQuery |
docIds(String... docIds) |
protected void |
injectParams(JsonObject input)
Override to inject query-specific parameters when doing the
SearchQuery.export() . |
injectParamsAndBoost, toString
public DocIdQuery(String... docIds)
public DocIdQuery docIds(String... docIds)
public DocIdQuery 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.