[IM] Added the parameter features to the indices list API to improve ES performance (#124163)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
Yulia Čech 2022-02-02 14:48:05 +01:00 committed by GitHub
parent d7daf41798
commit 7b9901eac8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -30,6 +30,9 @@ async function fetchIndicesCall(
'*.settings.index.hidden',
'*.data_stream',
],
// for better performance only compute aliases and settings of indices but not mappings
// @ts-expect-error new param https://github.com/elastic/elasticsearch-specification/issues/1382
features: ['aliases', 'settings'],
});
if (!Object.keys(indices).length) {