add alias support (#174827)

This commit is contained in:
Peter Pisljar 2024-01-29 11:17:24 +01:00 committed by GitHub
parent 1847cb8638
commit cc43dab69f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -54,7 +54,11 @@ export function registerGetDatasetInfoFunction({
name: index === '' ? '*' : index,
expand_wildcards: 'open',
});
indices = [...body.indices.map((i) => i.name), ...body.data_streams.map((d) => d.name)];
indices = [
...body.indices.map((i) => i.name),
...body.data_streams.map((d) => d.name),
...body.aliases.map((d) => d.name),
];
} catch (e) {
indices = [];
}