I struggle to find a generic mapping for my GeoJSON data in 7.14.0.
My documents are created using a composition pattern. This results in a collection document types that may have a field "geometry" containing GeoJSON GeometryCollections somewhere within their geometry.
I created a simple mapping like this:
{
"properties": {
(...)
"geometry": {
"type": "geo_shape"
}
},
(...)
Which lets me run searches using the geo queries, but only returns documents where geometry is a top level key.
How should I go about changing this to a more generic/dynamic mapping that indexes every occurrence of a "geometry" as one field? I tried changing this into a dynamic template, but so far failed to get it working.