Class AbstractFtsQuery
- java.lang.Object
-
- com.couchbase.client.java.search.queries.AbstractFtsQuery
-
- Direct Known Subclasses:
AbstractCompoundQuery
,BooleanFieldQuery
,BooleanQuery
,DateRangeQuery
,DocIdQuery
,GeoBoundingBoxQuery
,GeoDistanceQuery
,MatchAllQuery
,MatchNoneQuery
,MatchPhraseQuery
,MatchQuery
,NumericRangeQuery
,PhraseQuery
,PrefixQuery
,QueryStringQuery
,RegexpQuery
,TermQuery
,TermRangeQuery
,WildcardQuery
@Uncommitted @Private public abstract class AbstractFtsQuery extends Object
A base class for all FTS query classes. Exposes the common FTS query parameters. In order to instantiate various flavors of queries, look at concrete classes or static factory methods inSearchQuery
.- Since:
- 2.3.0
- Author:
- Simon Baslé, Michael Nitschinger
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractFtsQuery()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description AbstractFtsQuery
boost(double boost)
protected abstract void
injectParams(JsonObject input)
Override to inject query-specific parameters when doing theSearchQuery.export()
.void
injectParamsAndBoost(JsonObject input)
Injects the query's parameters (including the common boost and query-specific parameters) into a preparedJsonObject
.String
toString()
-
-
-
Method Detail
-
boost
public AbstractFtsQuery boost(double boost)
-
injectParamsAndBoost
public void injectParamsAndBoost(JsonObject input)
Injects the query's parameters (including the common boost and query-specific parameters) into a preparedJsonObject
.- Parameters:
input
- the prepared JsonObject to receive the parameters.- See Also:
for a usage of this method.
-
injectParams
protected abstract void injectParams(JsonObject input)
Override to inject query-specific parameters when doing theSearchQuery.export()
.- Parameters:
input
- the preparedJsonObject
that will represent the query.
-
-