Skip to content

Commit

Permalink
[Obs AI Assistant] Query remote indices by default (elastic#193462)
Browse files Browse the repository at this point in the history
Query `[ '*', '*:*' ]` by default when listing indices.

Co-authored-by: Elastic Machine <[email protected]>
  • Loading branch information
dgieselaar and elasticmachine authored Nov 22, 2024
1 parent 613396d commit ae31ce1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down

0 comments on commit ae31ce1

Please sign in to comment.