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 inSearchQuery.- Since:
- 2.3.0
- Author:
- Simon Baslé, Michael Nitschinger
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractFtsQuery()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description AbstractFtsQueryboost(double boost)protected abstract voidinjectParams(JsonObject input)Override to inject query-specific parameters when doing theSearchQuery.export().voidinjectParamsAndBoost(JsonObject input)Injects the query's parameters (including the common boost and query-specific parameters) into a preparedJsonObject.StringtoString()
-
-
-
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 preparedJsonObjectthat will represent the query.
-
-