Class PrefixQuery
- java.lang.Object
-
- com.couchbase.client.java.search.queries.AbstractFtsQuery
-
- com.couchbase.client.java.search.queries.PrefixQuery
-
@Uncommitted @Public public class PrefixQuery extends AbstractFtsQuery
A FTS query that allows for simple matching on a given prefix.- Since:
- 2.3.0
- Author:
- Simon Baslé, Michael Nitschinger
-
-
Constructor Summary
Constructors Constructor Description PrefixQuery(String prefix)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PrefixQuery
boost(double boost)
PrefixQuery
field(String field)
protected void
injectParams(JsonObject input)
Override to inject query-specific parameters when doing theSearchQuery.export()
.-
Methods inherited from class com.couchbase.client.java.search.queries.AbstractFtsQuery
injectParamsAndBoost, toString
-
-
-
-
Constructor Detail
-
PrefixQuery
public PrefixQuery(String prefix)
-
-
Method Detail
-
field
public PrefixQuery field(String field)
-
boost
public PrefixQuery boost(double boost)
- Overrides:
boost
in classAbstractFtsQuery
-
injectParams
protected void injectParams(JsonObject input)
Description copied from class:AbstractFtsQuery
Override to inject query-specific parameters when doing theSearchQuery.export()
.- Specified by:
injectParams
in classAbstractFtsQuery
- Parameters:
input
- the preparedJsonObject
that will represent the query.
-
-