Class MatchPhraseQuery
- java.lang.Object
-
- com.couchbase.client.java.search.queries.AbstractFtsQuery
-
- com.couchbase.client.java.search.queries.MatchPhraseQuery
-
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 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 Detail
-
MatchPhraseQuery
public MatchPhraseQuery(String matchPhrase)
-
-
Method Detail
-
boost
public MatchPhraseQuery boost(double boost)
- Overrides:
boost
in classAbstractFtsQuery
-
field
public MatchPhraseQuery field(String field)
-
analyzer
public MatchPhraseQuery analyzer(String analyzer)
-
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.
-
-