@InterfaceStability.Experimental @InterfaceAudience.Public public class PrefixQuery extends AbstractFtsQuery
A FTS query that allows for simple matching on a given prefix.
| Constructor and Description |
|---|
PrefixQuery(String prefix) |
| Modifier and Type | Method and Description |
|---|---|
PrefixQuery |
boost(double boost) |
PrefixQuery |
field(String field) |
protected void |
injectParams(JsonObject input)
Override to inject query-specific parameters when doing the
SearchQuery.export(). |
injectParamsAndBoost, toStringpublic PrefixQuery(String prefix)
public PrefixQuery field(String field)
public PrefixQuery 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.