Class PhraseQuery
java.lang.Object
com.couchbase.client.java.search.queries.AbstractFtsQuery
com.couchbase.client.java.search.queries.PhraseQuery
@Uncommitted @Public public class PhraseQuery extends AbstractFtsQuery
A FTS query that matches several terms (a "phrase") as is. The order of the terms mater and no
further processing is applied to them, so they must appear in the index exactly as provided.
Usually for debugging purposes, prefer
MatchPhraseQuery
.- Since:
- 2.3.0
- Author:
- Simon Baslé, Michael Nitschinger
-
Constructor Summary
Constructors Constructor Description PhraseQuery(String... terms)
-
Method Summary
Modifier and Type Method Description PhraseQuery
boost(double boost)
PhraseQuery
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 Details
-
PhraseQuery
-
-
Method Details
-
field
-
boost
- Overrides:
boost
in classAbstractFtsQuery
-
injectParams
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.
-