Class MatchPhraseQuery
java.lang.Object
com.couchbase.client.java.search.queries.AbstractFtsQuery
com.couchbase.client.java.search.queries.MatchPhraseQuery
@Uncommitted @Public public class MatchPhraseQuery extends AbstractFtsQuery
A FTS query that matches several given terms (a "phrase"), applying further processing
like analyzers to them.
- Since:
- 2.3.0
- Author:
- Simon Baslé, Michael Nitschinger
-
Constructor Summary
Constructors Constructor Description MatchPhraseQuery(String matchPhrase)
-
Method Summary
Modifier and Type Method Description MatchPhraseQuery
analyzer(String analyzer)
MatchPhraseQuery
boost(double boost)
MatchPhraseQuery
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
-
MatchPhraseQuery
-
-
Method Details
-
boost
- Overrides:
boost
in classAbstractFtsQuery
-
field
-
analyzer
-
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.
-