Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(queryEnhancements): data.search() should not ignore the `strategy…
…` passed as parameter (#8368) * fix(queryEnhancements): data.search() should not ignore the `strategy` passed as parameter This is quick fix for the issue that the search strategy passed to data.search() API been completely ignored when query enhancement is enabled and the localStorage has a language preserved. For example, selecting a language from discover language selector will make data.search() called with a specific strategy to use the language config stored in localStorage which is unexpected. With this fix, language config is only used when search strategy is not passed specifically. Signed-off-by: Yulong Ruan <[email protected]> * Changeset file for PR #8368 created/updated --------- Signed-off-by: Yulong Ruan <[email protected]> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com> (cherry picked from commit e077644) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
- Loading branch information