Search can't exclude system/metadata indices in some cases
In MR Exclude system/metadata indices in searches with wildcard kind, we tried to provide a solution to exclude indices of the system/meta data from the search results unless the indices (kinds) of the system/meta data are explicitly specified in the search query.
In recent adoption of system/metadata, we found that the MR Exclude system/metadata indices in searches with wildcard kind does not provide the expected search results in some test cases based on current version of ElasticSearch 7.x.
By studying the related codes in ElasticSearch 7.x and ElasticSearch 8.x, we found that most of test cases will fail as summarized in the attached spreadsheet. test-cases-for-system-metadata-indices.xlsx
Edited by Zhibin Mai