[Obs AI Assistant] Query remote indices by default (#193462)

Query `[ '*', '*:*' ]` by default when listing indices.

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
This commit is contained in:
Dario Gieselaar 2024-11-22 15:27:16 +01:00 committed by GitHub
parent 613396dab5
commit ae31ce1ea6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -48,7 +48,7 @@ export function registerGetDatasetInfoFunction({
try {
const body = await esClient.asCurrentUser.indices.resolveIndex({
name: index === '' ? '*' : index.split(','),
name: index === '' ? ['*', '*:*'] : index.split(','),
expand_wildcards: 'open',
});
indices = [