Class MatchQuery
- java.lang.Object
-
- com.couchbase.client.java.search.SearchQuery
-
- com.couchbase.client.java.search.queries.MatchQuery
-
public class MatchQuery extends SearchQuery
A FTS query that matches a given term, applying further processing to it like analyzers, stemming and evenfuzziness
.- Since:
- 2.3.0
- Author:
- Simon Baslé, Michael Nitschinger
-
-
Field Summary
-
Fields inherited from class com.couchbase.client.java.search.SearchQuery
boost
-
-
Constructor Summary
Constructors Constructor Description MatchQuery(String match)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MatchQuery
analyzer(String analyzer)
MatchQuery
boost(double boost)
MatchQuery
field(String field)
MatchQuery
fuzziness(int fuzziness)
MatchQuery
operator(MatchOperator operator)
MatchQuery
prefixLength(int prefixLength)
com.couchbase.client.core.api.search.CoreSearchQuery
toCore()
-
Methods inherited from class com.couchbase.client.java.search.SearchQuery
booleanField, booleans, conjuncts, dateRange, disjuncts, docId, export, geoBoundingBox, geoBoundingBox, geoDistance, geoDistance, geoPolygon, match, matchAll, matchNone, matchPhrase, numericRange, phrase, prefix, queryString, regexp, term, termRange, toString, wildcard
-
-
-
-
Constructor Detail
-
MatchQuery
public MatchQuery(String match)
-
-
Method Detail
-
boost
public MatchQuery boost(double boost)
- Overrides:
boost
in classSearchQuery
-
field
public MatchQuery field(String field)
-
analyzer
public MatchQuery analyzer(String analyzer)
-
prefixLength
public MatchQuery prefixLength(int prefixLength)
-
fuzziness
public MatchQuery fuzziness(int fuzziness)
-
operator
public MatchQuery operator(MatchOperator operator)
-
toCore
public com.couchbase.client.core.api.search.CoreSearchQuery toCore()
- Specified by:
toCore
in classSearchQuery
-
-