Class GeoDistanceQuery
- java.lang.Object
-
- com.couchbase.client.java.search.SearchQuery
-
- com.couchbase.client.java.search.queries.GeoDistanceQuery
-
public class GeoDistanceQuery extends SearchQuery
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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GeoDistanceQueryboost(double boost)GeoDistanceQueryfield(String field)protected voidinjectParams(JsonObject input)-
Methods inherited from class com.couchbase.client.java.search.SearchQuery
booleanField, booleans, conjuncts, dateRange, disjuncts, docId, export, geoBoundingBox, geoBoundingBox, geoDistance, geoDistance, geoPolygon, injectParamsAndBoost, match, matchAll, matchNone, matchPhrase, numericRange, phrase, prefix, queryString, regexp, term, termRange, toString, wildcard
-
-
-
-
Constructor Detail
-
GeoDistanceQuery
public GeoDistanceQuery(double locationLon, double locationLat, String distance)
-
-
Method Detail
-
field
public GeoDistanceQuery field(String field)
-
boost
public GeoDistanceQuery boost(double boost)
- Overrides:
boostin classSearchQuery
-
injectParams
protected void injectParams(JsonObject input)
- Specified by:
injectParamsin classSearchQuery
-
-