Geo: handling of out of bounds coordinates in geo_point #48599
Labels
:Analytics/Geo
Indexing, search aggregations of geo points and shapes
Team:Analytics
Meta label for analytical engine team (ESQL/Aggs/Geo)
Currently, out of bounds points (with longitude outside of -180 - +180 and latitude outside of -90 0 +90) are handled in a slightly different manner for different types of shapes in geo_shape type, which we are addressing in #43916. So, should we bring
geo_point
in line withgeo_shape
as well? Today, the geo_point's treatment of theignore_malformed
flag differs from geo_shape and all other types it essentially combines 2 flags together:ignore_malformed
andcoerse
. Typicallyignore_malformed
controls if a record will be indexed if it contains a field with malformed value, and if it is set to true and the field contains a malformed value the field is not indexed.coerce
on another hand, transforms the value into compatible type and the field is indexed. In case of thegeo_point
type,ignore_malformed
behaves ascoerse
if the value is formatted correctly but the coordinates are out of bounds and it behaves asignore_malformed
if the value is formatted incorrectly.I would like to propose to always accept out of bounds values and index them the same way as we index these values in geo_shapes and bring
ignore_malformed
in line with other types.To summarize today's behaviour is:
"point": "1000,1000"
ignore_malformed
isfalse
ignore_malformed
istrue
"point": "foo bar"
ignore_malformed
isfalse
ignore_malformed
istrue
Proposed behaviour:
"point": "1000,1000"
ignore_malformed
"point": "foo bar"
ignore_malformed
isfalse
ignore_malformed
istrue
The text was updated successfully, but these errors were encountered: