Skip to content

[Backport 2.x] Fix allowUnmappedFields, mapUnmappedFieldAsString settings to be applied when parsing query string query#14876

Merged
dblock merged 1 commit into2.xfrom
backport/backport-13957-to-2.x
Jul 22, 2024
Merged

[Backport 2.x] Fix allowUnmappedFields, mapUnmappedFieldAsString settings to be applied when parsing query string query#14876
dblock merged 1 commit into2.xfrom
backport/backport-13957-to-2.x

Conversation

@opensearch-trigger-bot
Copy link
Copy Markdown
Contributor

Backport 6227dc6 from #13957.

…ied when parsing query string query (#13957)

* Modify to invoke QueryShardContext.fieldMapper() method to apply allowUnmappedFields and mapUnmappedFieldAsString settings

Signed-off-by: imyp92 <pyw5420@gmail.com>

* Add test cases to verify returning 400 responses if unmapped fields are included for some types of query

Signed-off-by: imyp92 <pyw5420@gmail.com>

* Add changelog

Signed-off-by: imyp92 <pyw5420@gmail.com>

---------

Signed-off-by: imyp92 <pyw5420@gmail.com>
Signed-off-by: gaobinlong <gbinlong@amazon.com>
Co-authored-by: gaobinlong <gbinlong@amazon.com>
(cherry picked from commit 6227dc6)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@github-actions
Copy link
Copy Markdown
Contributor

❌ Gradle check result for ce29671: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

@github-actions
Copy link
Copy Markdown
Contributor

❕ Gradle check result for ce29671: UNSTABLE

Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure.

@codecov
Copy link
Copy Markdown

codecov bot commented Jul 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 71.42%. Comparing base (7755055) to head (ce29671).
Report is 4 commits behind head on 2.x.

Additional details and impacted files
@@             Coverage Diff              @@
##                2.x   #14876      +/-   ##
============================================
- Coverage     71.58%   71.42%   -0.16%     
+ Complexity    62544    62437     -107     
============================================
  Files          5108     5110       +2     
  Lines        293645   293675      +30     
  Branches      42781    42798      +17     
============================================
- Hits         210205   209763     -442     
- Misses        65741    66295     +554     
+ Partials      17699    17617      -82     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@dblock dblock merged commit 4b6fce7 into 2.x Jul 22, 2024
kkewwei pushed a commit to kkewwei/OpenSearch that referenced this pull request Jul 24, 2024
…ied when parsing query string query (opensearch-project#13957) (opensearch-project#14876)

* Modify to invoke QueryShardContext.fieldMapper() method to apply allowUnmappedFields and mapUnmappedFieldAsString settings

* Add test cases to verify returning 400 responses if unmapped fields are included for some types of query

* Add changelog

---------

(cherry picked from commit 6227dc6)

Signed-off-by: imyp92 <pyw5420@gmail.com>
Signed-off-by: gaobinlong <gbinlong@amazon.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: gaobinlong <gbinlong@amazon.com>
Signed-off-by: kkewwei <kkewwei@163.com>
@dbwiddis dbwiddis deleted the backport/backport-13957-to-2.x branch July 24, 2024 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant