Unify Elasticsearch error message processing/formatting in SearchSource to provided unified experience across Kibana #62868
Labels
Feature:Search
Querying infrastructure in Kibana
impact:medium
Addressing this issue will have a medium level of impact on the quality/strength of our product.
loe:medium
Medium Level of Effort
Failed search source requests throw an Error. The raw Elasticsearch failure message is available under
error.body.message
anderror.body.attributes
.Different plugins handle displaying the Elasticsearch failure message in different ways. Plugins like Discover have helper methods that format the Elasticsearch error into more friendly messages, for example: https://github.com/elastic/kibana/blob/7.7/src/legacy/core_plugins/kibana/public/discover/np_ready/angular/get_painless_error.ts.
It would be really helpful if SearchSource provided these types of services and unified the processing/formatting of Elasticsearch errors. SearchSource
Error
object could then be used by SearchSource consumers to provide a common way to expose Elasticsearch error messages to users.The text was updated successfully, but these errors were encountered: