Class TermQuery
java.lang.Object
com.couchbase.client.java.search.queries.AbstractFtsQuery
com.couchbase.client.java.search.queries.TermQuery
@Uncommitted @Public public class TermQuery extends AbstractFtsQuery
A FTS query that matches terms (without further analysis). Usually for debugging purposes,
prefer using
MatchQuery.- Since:
- 2.3.0
- Author:
- Simon Baslé, Michael Nitschinger
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description TermQueryboost(double boost)TermQueryfield(String fieldName)TermQueryfuzziness(int fuzziness)protected voidinjectParams(JsonObject input)Override to inject query-specific parameters when doing theSearchQuery.export().TermQueryprefixLength(int prefixLength)Methods inherited from class com.couchbase.client.java.search.queries.AbstractFtsQuery
injectParamsAndBoost, toString
-
Constructor Details
-
TermQuery
-
-
Method Details
-
field
-
fuzziness
-
prefixLength
-
boost
- Overrides:
boostin classAbstractFtsQuery
-
injectParams
Description copied from class:AbstractFtsQueryOverride to inject query-specific parameters when doing theSearchQuery.export().- Specified by:
injectParamsin classAbstractFtsQuery- Parameters:
input- the preparedJsonObjectthat will represent the query.
-