Skip to content

Commit

Permalink
[IM] Added the parameter features to the indices list API to improv…
Browse files Browse the repository at this point in the history
…e ES performance (#124163)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
  • Loading branch information
yuliacech and kibanamachine authored Feb 2, 2022
1 parent d7daf41 commit 7b9901e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions x-pack/plugins/index_management/server/lib/fetch_indices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 7b9901e

Please sign in to comment.