@InterfaceAudience.Public @InterfaceStability.Experimental public class MatchQuery extends SearchQuery
MatchQuery
creates a Query for matching text.
An analyzer is chosen based on the field. Input text is analyzed using this analyzer. Token terms resulting from this analysis are used to perform term searches.
Result documents must satisfy at least one of these term searches.
Modifier and Type | Class and Description |
---|---|
static class |
MatchQuery.Builder |
boost, BOOST, FROM, SIZE
Modifier | Constructor and Description |
---|---|
protected |
MatchQuery(MatchQuery.Builder builder) |
Modifier and Type | Method and Description |
---|---|
String |
analyzer() |
String |
field() |
int |
fuzziness() |
String |
match() |
static MatchQuery.Builder |
on(String index) |
int |
prefixLength() |
JsonObject |
queryJson() |
protected MatchQuery(MatchQuery.Builder builder)
public static MatchQuery.Builder on(String index)
public String match()
public String field()
public String analyzer()
public int prefixLength()
public int fuzziness()
public JsonObject queryJson()
queryJson
in class SearchQuery
Copyright © 2015 Couchbase, Inc.