org.elasticsearch.index.query
Class GeoPolygonFilterBuilder
java.lang.Object
org.elasticsearch.index.query.BaseFilterBuilder
org.elasticsearch.index.query.GeoPolygonFilterBuilder
- All Implemented Interfaces:
- ToXContent, FilterBuilder
public class GeoPolygonFilterBuilder
- extends BaseFilterBuilder
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GeoPolygonFilterBuilder
public GeoPolygonFilterBuilder(String name)
addPoint
public GeoPolygonFilterBuilder addPoint(double lat,
double lon)
- Adds a point with lat and lon
- Parameters:
lat
- The latitudelon
- The longitude
- Returns:
addPoint
public GeoPolygonFilterBuilder addPoint(String geohash)
filterName
public GeoPolygonFilterBuilder filterName(String filterName)
- Sets the filter name for the filter that can be used when searching for matched_filters per hit.
cache
public GeoPolygonFilterBuilder cache(boolean cache)
- Should the filter be cached or not. Defaults to false.
cacheKey
public GeoPolygonFilterBuilder cacheKey(String cacheKey)
doXContent
protected void doXContent(XContentBuilder builder,
ToXContent.Params params)
throws IOException
- Specified by:
doXContent
in class BaseFilterBuilder
- Throws:
IOException
Copyright © 2009-2012. All Rights Reserved.