@InterfaceStability.Uncommitted @InterfaceAudience.Public public class GeoDistanceQuery extends AbstractFtsQuery
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, toString
public GeoDistanceQuery(double locationLon, double locationLat, String distance)
public GeoDistanceQuery field(String field)
public GeoDistanceQuery boost(double boost)
boost
in class AbstractFtsQuery
protected void injectParams(JsonObject input)
AbstractFtsQuery
SearchQuery.export()
.injectParams
in class AbstractFtsQuery
input
- the prepared JsonObject
that will represent the query.Copyright © 2015 Couchbase, Inc.