Add derived_source_keep parameter for array preservation in derived source#22253
Conversation
Signed-off-by: Praveen Raj V <Venkatachalapathy.PraveenRaj@ibm.com>
Signed-off-by: Praveen Raj V <Venkatachalapathy.PraveenRaj@ibm.com>
Signed-off-by: Praveen Raj V <Venkatachalapathy.PraveenRaj@ibm.com>
…d_source_keep=arrays Signed-off-by: Praveen Raj V <Venkatachalapathy.PraveenRaj@ibm.com>
Signed-off-by: Praveen Raj V <Venkatachalapathy.PraveenRaj@ibm.com>
Signed-off-by: Praveen Raj V <Venkatachalapathy.PraveenRaj@ibm.com>
Signed-off-by: Praveen Raj V <Venkatachalapathy.PraveenRaj@ibm.com>
PR Reviewer Guide 🔍(Review updated until commit 5bea864)Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Latest suggestions up to 5bea864 Explore these optional code suggestions:
Previous suggestionsSuggestions up to commit 14db40c
Suggestions up to commit 8caa18f
Suggestions up to commit eedcf91
|
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #22253 +/- ##
============================================
- Coverage 73.36% 73.33% -0.03%
- Complexity 75900 75918 +18
============================================
Files 6070 6071 +1
Lines 344912 345068 +156
Branches 49627 49651 +24
============================================
+ Hits 253042 253065 +23
- Misses 71706 71862 +156
+ Partials 20164 20141 -23 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Signed-off-by: Praveen Raj V <Venkatachalapathy.PraveenRaj@ibm.com>
|
Persistent review updated to latest commit 8caa18f |
|
❌ Gradle check result for 8caa18f: 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? |
|
Persistent review updated to latest commit 14db40c |
|
❌ Gradle check result for 14db40c: 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? |
Signed-off-by: Praveen Raj V <Venkatachalapathy.PraveenRaj@ibm.com>
…s://github.com/praveenvenkat06/OpenSearch into feature/support-field-level-array-preservation
|
Persistent review updated to latest commit 5bea864 |
|
❌ Gradle check result for 5bea864: 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? |
Description
This PR implements the
derived_source_keepfield-level parameter to preserve array order and duplicate values when using OpenSearch's Derived Source feature.Related Issues
Resolves #22200
Problem Statement
When
index.derived_source.enabled=true, OpenSearch reconstructs_sourcefrom indexed fields. Currently, fields using doc values lose:Solution
Add a new field-level parameter
derived_source_keepwith two modes:"none"(default): Uses doc values - sorted/deduplicated"arrays": Uses stored fields - preserves order/duplicatesThis implementation supports "arrays" mode only. In future, "all" mode for nested objects preservation can be implemented if there is demand.
Example Usage
Key Features
store=truewhenderived_source_keep="arrays"is setstore=falseconfiguration@PublicApi(since = "3.8.0")for API stabilityCheck List
[DOC] Add documentation for Derived Source Keep Feature documentation-website#12545. Doc PR will be raised once this gets approved.
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.