org.elasticsearch.index.query.xcontent
Class GeoPolygonFilterBuilder

java.lang.Object
  extended by org.elasticsearch.index.query.xcontent.BaseFilterBuilder
      extended by org.elasticsearch.index.query.xcontent.GeoPolygonFilterBuilder
All Implemented Interfaces:
ToXContent, XContentFilterBuilder

public class GeoPolygonFilterBuilder
extends BaseFilterBuilder


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.MapParams, ToXContent.Params
 
Field Summary
 
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
 
Constructor Summary
GeoPolygonFilterBuilder(java.lang.String name)
           
 
Method Summary
 GeoPolygonFilterBuilder addPoint(double lat, double lon)
           
 GeoPolygonFilterBuilder addPoint(java.lang.String geohash)
           
 GeoPolygonFilterBuilder cache(boolean cache)
          Should the filter be cached or not.
protected  void doXContent(XContentBuilder builder, ToXContent.Params params)
           
 GeoPolygonFilterBuilder filterName(java.lang.String filterName)
          Sets the filter name for the filter that can be used when searching for matched_filters per hit.
 
Methods inherited from class org.elasticsearch.index.query.xcontent.BaseFilterBuilder
toXContent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeoPolygonFilterBuilder

public GeoPolygonFilterBuilder(java.lang.String name)
Method Detail

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