Skip to content

[GEO] New ShapeFieldMapper for indexing cartesian geometries #44980

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Jul 31, 2019
6 changes: 5 additions & 1 deletion docs/reference/mapping/types.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ string:: <<text,`text`>> and <<keyword,`keyword`>>

<<flattened>>:: Allows an entire JSON object to be indexed as a single field.

<<shape>>:: `shape` for arbitrary cartesian geometries.

[float]
[[types-array-handling]]
=== Arrays
Expand Down Expand Up @@ -121,4 +123,6 @@ include::types/sparse-vector.asciidoc[]

include::types/text.asciidoc[]

include::types/token-count.asciidoc[]
include::types/token-count.asciidoc[]

include::types/shape.asciidoc[]
14 changes: 7 additions & 7 deletions docs/reference/mapping/types/geo-shape.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ differs from many Geospatial APIs (e.g., Google Maps) that generally
use the colloquial latitude, longitude (Y, X).
=============================================

[[point]]
[[geo-point-type]]
[float]
===== http://geojson.org/geojson-spec.html#id2[Point]

Expand Down Expand Up @@ -328,7 +328,7 @@ POST /example/_doc
// CONSOLE

[float]
[[linestring]]
[[geo-linestring]]
===== http://geojson.org/geojson-spec.html#id3[LineString]

A `linestring` defined by an array of two or more positions. By
Expand Down Expand Up @@ -363,7 +363,7 @@ The above `linestring` would draw a straight line starting at the White
House to the US Capitol Building.

[float]
[[polygon]]
[[geo-polygon]]
===== http://www.geojson.org/geojson-spec.html#id4[Polygon]

A polygon is defined by a list of a list of points. The first and last
Expand Down Expand Up @@ -480,7 +480,7 @@ POST /example/_doc
// CONSOLE

[float]
[[multipoint]]
[[geo-multipoint]]
===== http://www.geojson.org/geojson-spec.html#id5[MultiPoint]

The following is an example of a list of geojson points:
Expand Down Expand Up @@ -511,7 +511,7 @@ POST /example/_doc
// CONSOLE

[float]
[[multilinestring]]
[[geo-multilinestring]]
===== http://www.geojson.org/geojson-spec.html#id6[MultiLineString]

The following is an example of a list of geojson linestrings:
Expand Down Expand Up @@ -544,7 +544,7 @@ POST /example/_doc
// CONSOLE

[float]
[[multipolygon]]
[[geo-multipolygon]]
===== http://www.geojson.org/geojson-spec.html#id7[MultiPolygon]

The following is an example of a list of geojson polygons (second polygon contains a hole):
Expand Down Expand Up @@ -577,7 +577,7 @@ POST /example/_doc
// CONSOLE

[float]
[[geometry_collection]]
[[geo-geometry_collection]]
===== http://geojson.org/geojson-spec.html#geometrycollection[Geometry Collection]

The following is an example of a collection of geojson geometry objects:
Expand Down
Loading