From ae31ce1ea6b69444714e86de1aea0a6fee79e130 Mon Sep 17 00:00:00 2001 From: Dario Gieselaar Date: Fri, 22 Nov 2024 15:27:16 +0100 Subject: [PATCH] [Obs AI Assistant] Query remote indices by default (#193462) Query `[ '*', '*:*' ]` by default when listing indices. Co-authored-by: Elastic Machine --- .../server/functions/get_dataset_info/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/server/functions/get_dataset_info/index.ts b/x-pack/plugins/observability_solution/observability_ai_assistant/server/functions/get_dataset_info/index.ts index 57cac3a4e0c0f..77ba9afb18260 100644 --- a/x-pack/plugins/observability_solution/observability_ai_assistant/server/functions/get_dataset_info/index.ts +++ b/x-pack/plugins/observability_solution/observability_ai_assistant/server/functions/get_dataset_info/index.ts @@ -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 = [