@InterfaceStability.Uncommitted @InterfaceAudience.Public public class GeoDistanceQuery extends AbstractFtsQuery
A FTS query which allows to match on geo distances.
| Constructor and Description |
|---|
GeoDistanceQuery(double locationLon,
double locationLat,
String distance) |
| Modifier and Type | Method and Description |
|---|---|
GeoDistanceQuery |
boost(double boost) |
GeoDistanceQuery |
field(String field) |
protected void |
injectParams(JsonObject input)
Override to inject query-specific parameters when doing the
SearchQuery.export(). |
injectParamsAndBoost, toStringpublic GeoDistanceQuery(double locationLon,
double locationLat,
String distance)
public GeoDistanceQuery field(String field)
public GeoDistanceQuery boost(double boost)
boost in class AbstractFtsQueryprotected void injectParams(JsonObject input)
AbstractFtsQueryOverride to inject query-specific parameters when doing the SearchQuery.export().
injectParams in class AbstractFtsQueryinput - the prepared JsonObject that will represent the query.Copyright © 2015 Couchbase, Inc.