mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-04-25 07:37:19 -04:00
This commit adds a new ShapeQueryBuilder to the xpack spatial module for querying arbitrary Cartesian geometries indexed using the new shape field type. The query builder extends AbstractGeometryQueryBuilder and leverages the ShapeQueryProcessor added in the previous field mapper commit. Tests are provided in ShapeQueryTests in the same manner as GeoShapeQueryTests and docs are updated to explain how the query works.
18 lines
598 B
Text
18 lines
598 B
Text
[[shape-queries]]
|
|
[role="xpack"]
|
|
[testenv="basic"]
|
|
== Shape queries
|
|
|
|
Like <<geo-shape,`geo_shape`>> Elasticsearch supports the ability to index
|
|
arbitrary two dimension (non Geospatial) geometries making it possible to
|
|
map out virtual worlds, sporting venues, theme parks, and CAD diagrams. The
|
|
<<shape,`shape`>> field type supports points, lines, polygons, multi-polygons,
|
|
envelope, etc.
|
|
|
|
The queries in this group are:
|
|
|
|
<<query-dsl-shape-query,`shape`>> query::
|
|
Finds documents with shapes that either intersect, are within, or do not
|
|
intersect a specified shape.
|
|
|
|
include::shape-query.asciidoc[]
|