Skip to content

Commit

Permalink
provide index pattern to options
Browse files Browse the repository at this point in the history
  • Loading branch information
mattkime committed Feb 16, 2021
1 parent de4e102 commit f568368
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/plugins/data/common/search/search_source/search_source.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit f568368

Please sign in to comment.