Class PhraseQuery
- java.lang.Object
-
- com.couchbase.client.java.search.SearchQuery
-
- com.couchbase.client.java.search.queries.PhraseQuery
-
public class PhraseQuery extends SearchQuery
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, preferMatchPhraseQuery
.- Since:
- 2.3.0
- Author:
- Simon Baslé, Michael Nitschinger
-
-
Constructor Summary
Constructors Constructor Description PhraseQuery(String... terms)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PhraseQuery
boost(double boost)
PhraseQuery
field(String field)
protected void
injectParams(JsonObject input)
-
Methods inherited from class com.couchbase.client.java.search.SearchQuery
booleanField, booleans, conjuncts, dateRange, disjuncts, docId, export, geoBoundingBox, geoDistance, injectParamsAndBoost, match, matchAll, matchNone, matchPhrase, numericRange, phrase, prefix, queryString, regexp, term, termRange, toString, wildcard
-
-
-
-
Constructor Detail
-
PhraseQuery
public PhraseQuery(String... terms)
-
-
Method Detail
-
field
public PhraseQuery field(String field)
-
boost
public PhraseQuery boost(double boost)
- Overrides:
boost
in classSearchQuery
-
injectParams
protected void injectParams(JsonObject input)
- Specified by:
injectParams
in classSearchQuery
-
-