public static class GeohashCellFilter.Builder extends BaseFilterBuilder
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 |
---|
Builder(String field) |
Builder(String field,
GeoPoint point) |
Builder(String field,
String geohash) |
Builder(String field,
String geohash,
boolean neighbors) |
Modifier and Type | Method and Description |
---|---|
GeohashCellFilter.Builder |
cache(boolean cache)
Should the filter be cached or not.
|
GeohashCellFilter.Builder |
cacheKey(String cacheKey) |
protected void |
doXContent(XContentBuilder builder,
ToXContent.Params params) |
GeohashCellFilter.Builder |
field(String field) |
GeohashCellFilter.Builder |
geohash(String geohash) |
GeohashCellFilter.Builder |
neighbors(boolean neighbors) |
GeohashCellFilter.Builder |
point(double lat,
double lon) |
GeohashCellFilter.Builder |
point(GeoPoint point) |
GeohashCellFilter.Builder |
precision(int levels) |
GeohashCellFilter.Builder |
precision(String precision) |
buildAsBytes, buildAsBytes, toString, toXContent
public Builder(String field)
public GeohashCellFilter.Builder point(GeoPoint point)
public GeohashCellFilter.Builder point(double lat, double lon)
public GeohashCellFilter.Builder geohash(String geohash)
public GeohashCellFilter.Builder precision(int levels)
public GeohashCellFilter.Builder precision(String precision)
public GeohashCellFilter.Builder neighbors(boolean neighbors)
public GeohashCellFilter.Builder field(String field)
public GeohashCellFilter.Builder cache(boolean cache)
public GeohashCellFilter.Builder cacheKey(String cacheKey)
protected void doXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
doXContent
in class BaseFilterBuilder
IOException
Copyright © 2009–2015. All rights reserved.