Skip to content

Commit

Permalink
[MD] Fix view single document issue by updating low-level search call…
Browse files Browse the repository at this point in the history
… param (#2431) (#2483)

* Add datasource param to low-level search call in Discover
* update change log

Signed-off-by: Su <[email protected]>
(cherry picked from commit 1f639b0)

Co-authored-by: Zhongnan Su <[email protected]>
  • Loading branch information
opensearch-trigger-bot[bot] and zhongnansu authored Oct 4, 2022
1 parent b40825c commit 57f2d20
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ export function useOpenSearchDocSearch({

const { rawResponse } = await getServices()
.data.search.search({
dataSourceId: indexPatternEntity.dataSourceRef?.id,
params: {
index,
body: buildSearchBody(id, indexPatternEntity),
Expand Down

0 comments on commit 57f2d20

Please sign in to comment.