optimize geo queries: remove redundant call and use filter
- We make one extra query to retrieve field types when we have geo filter supplied on requests. This was required as same name attribute across different kinds can be of geo-point or geo-shape. This can be removed as Elasticsearch apis (>=v7.11) handle it in API.
- Enable Elasticsearch native caching by using filters on geo queries
Type of change
-
Bug Fix
Does this introduce a change in the core logic?
- [NO]
Does this introduce a change in the cloud provider implementation, if so which cloud?
-
Azure
Does this introduce a breaking change?
- [NO]