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
All Methods Instance Methods Concrete Methods 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 Detail
-
MatchPhraseQuery
public MatchPhraseQuery(String matchPhrase)
-
-
Method Detail
-
boost
public MatchPhraseQuery boost(double boost)
- Overrides:
boostin classAbstractFtsQuery
-
field
public MatchPhraseQuery field(String field)
-
analyzer
public MatchPhraseQuery analyzer(String analyzer)
-
injectParams
protected void injectParams(JsonObject input)
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.
-
-