Class TermQuery
- java.lang.Object
-
- com.couchbase.client.java.search.SearchQuery
-
- com.couchbase.client.java.search.queries.TermQuery
-
public class TermQuery extends SearchQuery
A FTS query that matches terms (without further analysis). Usually for debugging purposes, prefer usingMatchQuery
.- Since:
- 2.3.0
- Author:
- Simon Baslé, Michael Nitschinger
-
-
Field Summary
-
Fields inherited from class com.couchbase.client.java.search.SearchQuery
boost
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TermQuery
boost(double boost)
TermQuery
field(String fieldName)
TermQuery
fuzziness(int fuzziness)
TermQuery
prefixLength(int prefixLength)
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
-
TermQuery
public TermQuery(String term)
-
-
Method Detail
-
fuzziness
public TermQuery fuzziness(int fuzziness)
-
prefixLength
public TermQuery prefixLength(int prefixLength)
-
boost
public TermQuery boost(double boost)
- Overrides:
boost
in classSearchQuery
-
toCore
public CoreSearchQuery toCore()
- Specified by:
toCore
in classSearchQuery
-
-