Maybe I'm not understanding the documentation correctly, sorry for any confusion caused by this.
I have documents with a location field. What I would like to do is to run a query to find out for which documents the location falls within a given shape. If I understand the documentation correctly, my options for this are
Since my shapes are quite big and will be reused, I'd rather have them indexed instead of putting them directly into the query. As far as I can see,
geo_polygon queries don't support that. So I have to use
geo_shape queries which ask for the field to be filtered on to be mapped to type
geo_shape (as per the documentation).
Since I also want the option to run
geo_distancequeries, I need my locations as
Happy to learn that the above is not correct and life is simpler than it seems.