Add false_allow_templates as a dynamic mapping option#19065
Merged
andrross merged 1 commit intoopensearch-project:mainfrom Aug 13, 2025
Merged
Conversation
Signed-off-by: Bruce Hong <bruce.hong@glean.com>
c23067a to
a18dd07
Compare
false_allow_templates as a dynamic mapping optionfalse_allow_templates as a dynamic mapping option
Contributor
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #19065 +/- ##
============================================
+ Coverage 72.87% 72.94% +0.07%
- Complexity 69380 69432 +52
============================================
Files 5647 5647
Lines 319084 319106 +22
Branches 46157 46163 +6
============================================
+ Hits 232528 232778 +250
+ Misses 67729 67466 -263
- Partials 18827 18862 +35 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Contributor
Author
|
cc @gaobinlong not sure if you wanted to take another look. This is an exact copy of the previous with a few test cases removed. |
andrross
approved these changes
Aug 13, 2025
Member
|
Thanks for the quick fix @bruce-hong-glean! |
RajatGupta02
pushed a commit
to RajatGupta02/OpenSearch
that referenced
this pull request
Aug 18, 2025
…ch-project#19065) Signed-off-by: Bruce Hong <bruce.hong@glean.com>
3 tasks
karenyrx
pushed a commit
to karenyrx/OpenSearch
that referenced
this pull request
Aug 21, 2025
…ch-project#19065) Signed-off-by: Bruce Hong <bruce.hong@glean.com>
atris
pushed a commit
to atris/OpenSearch
that referenced
this pull request
Aug 28, 2025
…ch-project#19065) Signed-off-by: Bruce Hong <bruce.hong@glean.com>
kh3ra
pushed a commit
to kh3ra/OpenSearch
that referenced
this pull request
Sep 5, 2025
…ch-project#19065) Signed-off-by: Bruce Hong <bruce.hong@glean.com>
vinaykpud
pushed a commit
to vinaykpud/OpenSearch
that referenced
this pull request
Sep 26, 2025
…ch-project#19065) Signed-off-by: Bruce Hong <bruce.hong@glean.com>
This was referenced Jan 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR adds the
dynamic: false_allow_templatesoption to the schema. This creates mappings for any field that matchespropertiesordynamic_templates, and ignores any fields that do not (as opposed to rejecting altogether).Example from linked issue, the usage is:
urlmatches an explicit property and the fieldsdate_timestampanddate_timezonemath the dynamic template:This is a redo of the reverted PR here, with invalid tests removed.
Related Issues
Resolves #18617
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.