-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Add ability to limit fields added during Mapper#merge #102936
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
elasticsearchmachine
merged 50 commits into
elastic:main
from
felixbarny:mapping-merge-limit-fields
Jan 23, 2024
Merged
Changes from all commits
Commits
Show all changes
50 commits
Select commit
Hold shift + click to select a range
0aa542d
Add ability to limit fields added during Mapper#merge
felixbarny 044835b
Add unit tests
felixbarny 1d92b11
Don't preserve order in mappers
felixbarny e9944c7
Apply spotless suggestions
felixbarny 2eb3c4d
Merge branch 'main' into mapping-merge-limit-fields
elasticmachine 9c49a87
Comment out new tests in ObjectMapperMergeTests to check if they're t…
felixbarny 3244ec5
Revert "Comment out new tests in ObjectMapperMergeTests to check if t…
felixbarny f7719f2
Merge remote-tracking branch 'origin/main' into mapping-merge-limit-f…
felixbarny f0f76c7
Merge remote-tracking branch 'origin/main' into mapping-merge-limit-f…
felixbarny 84ab9ae
Consider runtime fields for root mapper size
felixbarny befd7f6
Assert mapper size equal to builder size
felixbarny dbee72b
Fix SemanticTextFieldMapperTests
felixbarny fd524dc
Fix multi-field mapper builder size calculation
felixbarny 2e0f00c
Apply spotless suggestions
felixbarny cc69edf
Fixes and polishing
felixbarny c648c69
Fix SemanticTextFieldMapperTests
felixbarny 7d597e6
Merge remote-tracking branch 'origin/main' into mapping-merge-limit-f…
felixbarny 49e4902
Revert "Apply spotless suggestions"
felixbarny 024b689
Revert "Fix multi-field mapper builder size calculation"
felixbarny 54f0338
Revert "Assert mapper size equal to builder size"
felixbarny 4d53bcd
Merge remote-tracking branch 'origin/main' into mapping-merge-limit-f…
felixbarny a716549
Remove Mapper.Builder#mapperSize
felixbarny 2518e33
Remove unused import
felixbarny 0f7fc39
Merge remote-tracking branch 'origin/main' into mapping-merge-limit-f…
felixbarny 72c5582
Update parameter names to mapperMergeContext
felixbarny a8aa0e8
Add Javadoc to MapperMergeContext and make it final
felixbarny d3c962b
Make MapperService#mergeMappings static again
felixbarny c22af76
Merge remote-tracking branch 'origin/main' into mapping-merge-limit-f…
felixbarny 6574d6d
Make field adding methods in MapperMergeContext package-private
felixbarny 274aff0
Apply feedback from review
felixbarny 08f9c5c
Use Consumer in addFieldIfPossible
felixbarny cf8a6ba
Extract ObjectMapper#addNewObjectMapper
felixbarny 56d7cf1
Make `FieldMapper.MultiFields.Builder.add(FieldMapper)` private
felixbarny 31e70e8
Merge remote-tracking branch 'origin/main' into mapping-merge-limit-f…
felixbarny 48e2f33
Fix merge with empty mapping
felixbarny 3e5d65b
Attempt to fix mapper serialization assertion
felixbarny 1751c70
Apply spotless suggestions
felixbarny a6d0e2f
Add NewFieldsBudget class
felixbarny 04190ac
Merge remote-tracking branch 'origin/main' into mapping-merge-limit-f…
felixbarny 8fae92b
Relax assertion in RootObjectMapper#merge
felixbarny 0218d5b
Apply feedback from review
felixbarny 678c416
Fix checkstyle issue
felixbarny 3edf677
Rename method to MapperMergeContext#decrementFieldBudgetIfPossible
felixbarny c1b4258
Move put method out of the if/else again
felixbarny 4ab47e7
Enhance javadoc
felixbarny 3aca9d9
Enhance testMergeWithLimitTruncatedObjectField
felixbarny 7e9d8d0
Remove assertion
felixbarny 1dc26da
Add more cases to ObjectMapperMergeTests
felixbarny 6383ee6
Add test cases for ObjectMapper#withoutMappers
felixbarny 7720b12
Merge remote-tracking branch 'origin/main' into mapping-merge-limit-f…
felixbarny File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.