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
-
-
Field Summary
-
Fields inherited from class com.couchbase.client.java.search.SearchQuery
boost
-
-
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 GeoDistanceQuery
boost(double boost)
GeoDistanceQuery
field(String field)
CoreSearchQuery
toCore()
-
Methods inherited from class com.couchbase.client.java.search.SearchQuery
booleanField, booleans, conjuncts, dateRange, disjuncts, docId, export, geoBoundingBox, geoBoundingBox, geoDistance, geoDistance, geoPolygon, 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:
boost
in classSearchQuery
-
toCore
public CoreSearchQuery toCore()
- Specified by:
toCore
in classSearchQuery
-
-