Class GeoDistanceQuery
java.lang.Object
com.couchbase.client.java.search.queries.AbstractFtsQuery
com.couchbase.client.java.search.queries.GeoDistanceQuery
@Uncommitted @Public public class GeoDistanceQuery extends AbstractFtsQuery
A FTS query which allows to match on geo distances.
- Since:
- 2.4.5
- Author:
- Michael Nitschinger
-
Constructor Summary
Constructors Constructor Description GeoDistanceQuery(double locationLon, double locationLat, String distance)
-
Method Summary
Modifier and Type Method Description GeoDistanceQuery
boost(double boost)
GeoDistanceQuery
field(String field)
protected void
injectParams(JsonObject input)
Override to inject query-specific parameters when doing theSearchQuery.export()
.Methods inherited from class com.couchbase.client.java.search.queries.AbstractFtsQuery
injectParamsAndBoost, toString
-
Constructor Details
-
GeoDistanceQuery
-
-
Method Details
-
field
-
boost
- Overrides:
boost
in classAbstractFtsQuery
-
injectParams
Description copied from class:AbstractFtsQuery
Override to inject query-specific parameters when doing theSearchQuery.export()
.- Specified by:
injectParams
in classAbstractFtsQuery
- Parameters:
input
- the preparedJsonObject
that will represent the query.
-