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 MatchPhraseQueryanalyzer(String analyzer)MatchPhraseQueryboost(double boost)MatchPhraseQueryfield(String field)protected voidinjectParams(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:
boostin classAbstractFtsQuery
-
field
-
analyzer
-
injectParams
Description copied from class:AbstractFtsQueryOverride to inject query-specific parameters when doing theSearchQuery.export().- Specified by:
injectParamsin classAbstractFtsQuery- Parameters:
input- the preparedJsonObjectthat will represent the query.
-