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.
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.
Now I would have to build an OR filter for all my possible geometry fields. Or is it possible to index all fields with a shared field name, so that I only have to create one filter?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.