I have a bunch of location indexed as geo_shapes. How can I filter all the ones that have a multipolygon type? For some reason the regular queries don't work inside the geo_shape object.
This type of query does not exist in Elasticsearch. The geo_shape is not store as GeoJSON in the index so the information on what type of shape it was is lost while indexing. If you want to search on this information, you will need to index the type as a separate keyword field alongside your geo_shape field
Given that the indexing process is not updated, is there a more efficient way of retrieving all the multipolygon shapes other than retrieving all the documents in batches and manually filtering the geojson field by its type?
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.