public static class GeohashCellQuery.Builder extends QueryBuilder
fieldname
and
geohash
to be set. the default for a neighbor filteing is
false
.ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_PARAMS
Constructor and Description |
---|
GeohashCellQuery.Builder(String field) |
GeohashCellQuery.Builder(String field,
GeoPoint point) |
GeohashCellQuery.Builder(String field,
String geohash) |
GeohashCellQuery.Builder(String field,
String geohash,
boolean neighbors) |
Modifier and Type | Method and Description |
---|---|
protected void |
doXContent(XContentBuilder builder,
ToXContent.Params params) |
GeohashCellQuery.Builder |
field(String field) |
GeohashCellQuery.Builder |
geohash(String geohash) |
GeohashCellQuery.Builder |
neighbors(boolean neighbors) |
GeohashCellQuery.Builder |
point(double lat,
double lon) |
GeohashCellQuery.Builder |
point(GeoPoint point) |
GeohashCellQuery.Builder |
precision(int levels) |
GeohashCellQuery.Builder |
precision(String precision) |
toXContent
buildAsBytes, buildAsBytes, toString
public GeohashCellQuery.Builder(String field)
public GeohashCellQuery.Builder point(GeoPoint point)
public GeohashCellQuery.Builder point(double lat, double lon)
public GeohashCellQuery.Builder geohash(String geohash)
public GeohashCellQuery.Builder precision(int levels)
public GeohashCellQuery.Builder precision(String precision)
public GeohashCellQuery.Builder neighbors(boolean neighbors)
public GeohashCellQuery.Builder field(String field)
protected void doXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
doXContent
in class QueryBuilder
IOException
Copyright © 2009–2017. All rights reserved.