Class AbstractFtsQuery
java.lang.Object
com.couchbase.client.java.search.queries.AbstractFtsQuery
- Direct Known Subclasses:
AbstractCompoundQuery
,BooleanFieldQuery
,BooleanQuery
,DateRangeQuery
,DocIdQuery
,GeoBoundingBoxQuery
,GeoDistanceQuery
,GeoPolygonQuery
,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 in
SearchQuery
.- Since:
- 2.3.0
- Author:
- Simon Baslé, Michael Nitschinger
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractFtsQuery()
-
Method Summary
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()
-
Constructor Details
-
AbstractFtsQuery
protected AbstractFtsQuery()
-
-
Method Details
-
boost
-
injectParamsAndBoost
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
Override to inject query-specific parameters when doing theSearchQuery.export()
.- Parameters:
input
- the preparedJsonObject
that will represent the query.
-
toString
-