Package org.elasticsearch.search.geo
Class SpatialQueryBuilders.Geo
java.lang.Object
org.elasticsearch.search.geo.SpatialQueryBuilders.Geo
- All Implemented Interfaces:
SpatialQueryBuilders<GeoShapeQueryBuilder>
- Enclosing interface:
SpatialQueryBuilders<T extends AbstractGeometryQueryBuilder<T>>
public static final class SpatialQueryBuilders.Geo
extends Object
implements SpatialQueryBuilders<GeoShapeQueryBuilder>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.search.geo.SpatialQueryBuilders
SpatialQueryBuilders.Geo -
Field Summary
Fields inherited from interface org.elasticsearch.search.geo.SpatialQueryBuilders
GEO -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboundingBoxQuery(String name) A filter to filter based on a bounding box defined by top left and bottom right locations / pointsdisjointQuery(String name, String indexedShapeId) disjointQuery(String name, org.elasticsearch.geometry.Geometry shape) A filter to filter indexed shapes that are not intersection with the query shapedistanceQuery(String name) A filter to filter based on a specific distance from a specific geo location / point.intersectionQuery(String name, String indexedShapeId) intersectionQuery(String name, org.elasticsearch.geometry.Geometry shape) A filter to filter indexed shapes intersecting with shapespolygonQuery(String name, List<GeoPoint> points) Deprecated.shapeQuery(String name, String indexedShapeId) shapeQuery(String name, org.elasticsearch.geometry.Geometry shape) A filter based on the relationship of a shape and indexed shapeswithinQuery(String name, String indexedShapeId) withinQuery(String name, org.elasticsearch.geometry.Geometry shape) A filter to filter indexed shapes that are contained by a shape
-
Constructor Details
-
Geo
public Geo()
-
-
Method Details
-
distanceQuery
A filter to filter based on a specific distance from a specific geo location / point.- Parameters:
name- The location field name.
-
boundingBoxQuery
A filter to filter based on a bounding box defined by top left and bottom right locations / points- Parameters:
name- The location field name.
-
polygonQuery
Deprecated.useintersectionQuery(String, Geometry)insteadA filter to filter based on a polygon defined by a set of locations / points.- Parameters:
name- The location field name.
-
shapeQuery
A filter based on the relationship of a shape and indexed shapes- Specified by:
shapeQueryin interfaceSpatialQueryBuilders<GeoShapeQueryBuilder>- Parameters:
name- The shape field nameshape- Shape to use in the filter
-
shapeQuery
- Specified by:
shapeQueryin interfaceSpatialQueryBuilders<GeoShapeQueryBuilder>
-
intersectionQuery
public GeoShapeQueryBuilder intersectionQuery(String name, org.elasticsearch.geometry.Geometry shape) throws IOException A filter to filter indexed shapes intersecting with shapes- Specified by:
intersectionQueryin interfaceSpatialQueryBuilders<GeoShapeQueryBuilder>- Parameters:
name- The shape field nameshape- Shape to use in the filter- Throws:
IOException
-
intersectionQuery
- Specified by:
intersectionQueryin interfaceSpatialQueryBuilders<GeoShapeQueryBuilder>
-
withinQuery
public GeoShapeQueryBuilder withinQuery(String name, org.elasticsearch.geometry.Geometry shape) throws IOException A filter to filter indexed shapes that are contained by a shape- Specified by:
withinQueryin interfaceSpatialQueryBuilders<GeoShapeQueryBuilder>- Parameters:
name- The shape field nameshape- Shape to use in the filter- Throws:
IOException
-
withinQuery
- Specified by:
withinQueryin interfaceSpatialQueryBuilders<GeoShapeQueryBuilder>
-
disjointQuery
public GeoShapeQueryBuilder disjointQuery(String name, org.elasticsearch.geometry.Geometry shape) throws IOException A filter to filter indexed shapes that are not intersection with the query shape- Specified by:
disjointQueryin interfaceSpatialQueryBuilders<GeoShapeQueryBuilder>- Parameters:
name- The shape field nameshape- Shape to use in the filter- Throws:
IOException
-
disjointQuery
- Specified by:
disjointQueryin interfaceSpatialQueryBuilders<GeoShapeQueryBuilder>
-
intersectionQuery(String, Geometry)instead