@InterfaceStability.Experimental @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, toStringpublic DocIdQuery(String... docIds)
public DocIdQuery docIds(String... docIds)
public DocIdQuery boost(double boost)
boost in class AbstractFtsQueryprotected void injectParams(JsonObject input)
AbstractFtsQueryOverride to inject query-specific parameters when doing the SearchQuery.export().
injectParams in class AbstractFtsQueryinput - the prepared JsonObject that will represent the query.Copyright © 2015 Couchbase, Inc.