elastic / elasticsearch

Free and Open, Distributed, RESTful Search Engine
https://www.elastic.co/products/elasticsearch
Other
68.5k stars 24.33k forks source link

ESQL: improve debug/trace logging in IndexResolver #101622

Open astefan opened 8 months ago

astefan commented 8 months ago

Description

Issues like https://github.com/elastic/elasticsearch/issues/101489 or https://github.com/elastic/elasticsearch/issues/100869 are difficult to pinpoint due to highly complex and large mappings likely involved in the problematic query.

We could and should improve trace/debug logging that can expose the mappings involved in such queries. The IndexResolver and its field_caps call response management is the right place for such insights.

elasticsearchmachine commented 8 months ago

Pinging @elastic/es-analytics-geo (Team:Analytics)