-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove "expand index pattern when searching" setting for index patterns #12736
Comments
The Elasticsearch issue for reference: elastic/elasticsearch#25577 |
Some details about the original motivation for deprecating field_stats can be found here: elastic/elasticsearch#23914 |
I guess another option would be to do a search in place of |
@spalger, I don't see how _field_stats helps with your example (1 index with 1000 shards). Because _field_stats would just match that 1 index and you'd still do the 20,000 requests. Am I mistaken? |
You're right @trevan, I meant an index pattern like |
This elasticsearch PR may be the ticket to removing this opt-in pre-flight behavior entirely: elastic/elasticsearch#25658 |
We've nailed down a solution here, but I want to preserve the original ticket description in case we need to revisit this:
|
Kibana needs to completely remove use of the
_field_stats
API as it is about to be removed from elasticsearch.With elastic/elasticsearch#25658, Elasticsearch now has the built-in behavior of automatically optimizing search/msearch requests to only hit shards that could potentially have documents that match the given filters. This is almost the same behavior that Kibana was hacking together with a pre-flight request to field_stats, so no alternate solution in Kibana itself should be necessary any longer, and we can just outright remove the pre-flight behavior.
The text was updated successfully, but these errors were encountered: