@InterfaceStability.Uncommitted @InterfaceAudience.Public public class MatchPhraseQuery extends AbstractFtsQuery
A FTS query that matches several given terms (a “phrase”), applying further processing like analyzers to them.
Constructor and Description |
---|
MatchPhraseQuery(String matchPhrase) |
Modifier and Type | Method and 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 the
SearchQuery.export() . |
injectParamsAndBoost, toString
public MatchPhraseQuery(String matchPhrase)
public MatchPhraseQuery boost(double boost)
boost
in class AbstractFtsQuery
public MatchPhraseQuery field(String field)
public MatchPhraseQuery analyzer(String analyzer)
protected void injectParams(JsonObject input)
AbstractFtsQuery
Override to inject query-specific parameters when doing the SearchQuery.export()
.
injectParams
in class AbstractFtsQuery
input
- the prepared JsonObject
that will represent the query.Copyright © 2015 Couchbase, Inc.