From f5683688c98d3400a628b54efe1b55413d83ee7d Mon Sep 17 00:00:00 2001 From: Matt Kime Date: Tue, 16 Feb 2021 08:17:05 -0600 Subject: [PATCH] provide index pattern to options --- src/plugins/data/common/search/search_source/search_source.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/plugins/data/common/search/search_source/search_source.ts b/src/plugins/data/common/search/search_source/search_source.ts index 1c1360414cb2e..dc685e927c237 100644 --- a/src/plugins/data/common/search/search_source/search_source.ts +++ b/src/plugins/data/common/search/search_source/search_source.ts @@ -296,6 +296,9 @@ export class SearchSource { switchMap(() => { const searchRequest = this.flatten(); this.history = [searchRequest]; + if (searchRequest.index) { + options.indexPattern = searchRequest.index; + } return getConfig(UI_SETTINGS.COURIER_BATCH_SEARCHES) ? from(this.legacyFetch(searchRequest, options))