@InterfaceAudience.Public @InterfaceStability.Experimental public class MatchPhraseQuery extends SearchQuery
MatchPhraseQuery
creates a new Query object for matching phrases in the index.
An analyzer is chosen based on the field. Input text is analyzed using this analyzer. Token terms resulting from this analysis are used to build a search phrase.
Result documents must match this phrase.
Modifier and Type | Class and Description |
---|---|
static class |
MatchPhraseQuery.Builder |
boost, BOOST, FROM, SIZE
Modifier | Constructor and Description |
---|---|
protected |
MatchPhraseQuery(MatchPhraseQuery.Builder builder) |
Modifier and Type | Method and Description |
---|---|
String |
analyzer() |
String |
field() |
String |
match() |
static MatchPhraseQuery.Builder |
on(String index) |
JsonObject |
queryJson() |
protected MatchPhraseQuery(MatchPhraseQuery.Builder builder)
public static MatchPhraseQuery.Builder on(String index)
public String match()
public String field()
public String analyzer()
public JsonObject queryJson()
queryJson
in class SearchQuery
Copyright © 2015 Couchbase, Inc.