@InterfaceStability.Experimental @InterfaceAudience.Public public class PhraseQuery extends AbstractFtsQuery
A FTS query that matches several terms (a “phrase”) as is. The order of the terms mater and no further processing is applied to them, so they must appear in the index exactly as provided. Usually for debugging purposes, prefer MatchPhraseQuery
.
Constructor and Description |
---|
PhraseQuery(String... terms) |
Modifier and Type | Method and Description |
---|---|
PhraseQuery |
boost(double boost) |
PhraseQuery |
field(String field) |
protected void |
injectParams(JsonObject input)
Override to inject query-specific parameters when doing the
SearchQuery.export() . |
injectParamsAndBoost, toString
public PhraseQuery(String... terms)
public PhraseQuery field(String field)
public PhraseQuery boost(double boost)
boost
in class AbstractFtsQuery
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.