Lookup concrete indices and alias information via a single lookup #12173
Labels
help wanted
adoptme
:Search/Search
Search-related issues that do not fall into other categories
Team:Search
Meta label for search team
won't fix
If a request is accepted by the coordination node we lookup the concrete indices, potential aliases and whether an alias has a filter up via several lookups from the cluster metadata. Also when checking for cluster blocks we do a lookup too.
All this can be done via a single lookup and if we change the transport action api we pass this information too all the places that need it.
Doing this via a single lookup cleans things up (no need for MetaData#filteringAliases(...) and MetaData#resolveSearchRouting(...) methods) but in cases where there are many aliases and indices this can speed things up too.
Follow up issue for #12058
The text was updated successfully, but these errors were encountered: