org.elasticsearch.index.query.xcontent
Class GeoPolygonFilterBuilder
java.lang.Object
org.elasticsearch.index.query.xcontent.BaseFilterBuilder
org.elasticsearch.index.query.xcontent.GeoPolygonFilterBuilder
- All Implemented Interfaces:
- ToXContent, XContentFilterBuilder
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(java.lang.String name)
addPoint
public GeoPolygonFilterBuilder addPoint(double lat,
double lon)
addPoint
public GeoPolygonFilterBuilder addPoint(java.lang.String geohash)
filterName
public GeoPolygonFilterBuilder filterName(java.lang.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.
doXContent
protected void doXContent(XContentBuilder builder,
ToXContent.Params params)
throws java.io.IOException
- Specified by:
doXContent
in class BaseFilterBuilder
- Throws:
java.io.IOException