@InterfaceStability.Experimental @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, toStringpublic MatchPhraseQuery(String matchPhrase)
public MatchPhraseQuery boost(double boost)
boost in class AbstractFtsQuerypublic MatchPhraseQuery field(String field)
public MatchPhraseQuery analyzer(String analyzer)
protected void injectParams(JsonObject input)
AbstractFtsQueryOverride to inject query-specific parameters when doing the SearchQuery.export().
injectParams in class AbstractFtsQueryinput - the prepared JsonObject that will represent the query.Copyright © 2015 Couchbase, Inc.