From 1b586e0bb66c4c38821931caab06f890943d4af5 Mon Sep 17 00:00:00 2001 From: Su Date: Wed, 28 Sep 2022 12:39:47 -0700 Subject: [PATCH 1/2] Add datasource param to low-level search call in disvcoer Signed-off-by: Su --- .../application/components/doc/use_opensearch_doc_search.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/discover/public/application/components/doc/use_opensearch_doc_search.ts b/src/plugins/discover/public/application/components/doc/use_opensearch_doc_search.ts index 8d1aa123e43..b5ca9fec1c2 100644 --- a/src/plugins/discover/public/application/components/doc/use_opensearch_doc_search.ts +++ b/src/plugins/discover/public/application/components/doc/use_opensearch_doc_search.ts @@ -82,6 +82,7 @@ export function useOpenSearchDocSearch({ const { rawResponse } = await getServices() .data.search.search({ + dataSourceId: indexPatternEntity.dataSourceRef?.id, params: { index, body: buildSearchBody(id, indexPatternEntity), From 378f01e46768147883329241c957c9a57763c99e Mon Sep 17 00:00:00 2001 From: Su Date: Wed, 28 Sep 2022 17:40:24 -0700 Subject: [PATCH 2/2] update change log Signed-off-by: Su --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index b7e933afff8..53339853ac4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) * [Vis Builder] Fixes auto bounds for timeseries bar chart visualization ([2401](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/2401)) * [Vis Builder] Fixes visualization shift when editing agg ([2401](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/2401)) * [Vis Builder] Renames "Histogram" to "Bar" in vis type picker ([2401](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/2401)) +* [MD] Add data source param to low-level search call in Discover ([#2431](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/2431)) ### 🚞 Infrastructure