Add preserve_leaf_arrays, properties, and passthrough to FlattenedProperty#6291
Draft
MattDevy wants to merge 4 commits into
Draft
Add preserve_leaf_arrays, properties, and passthrough to FlattenedProperty#6291MattDevy wants to merge 4 commits into
MattDevy wants to merge 4 commits into
Conversation
Contributor
|
Following you can find the validation changes against the target branch for the API.
You can validate this API yourself by using the |
MattDevy
marked this pull request as ready for review
May 21, 2026 09:48
Contributor
|
wait where's |
Contributor
Author
I added properties, then removed it as it clashes with the "properties" key name / the compiler freaked out. Let me put this one back in draft, might need to work out how to re-add it properly |
MattDevy
marked this pull request as draft
May 21, 2026 10:07
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.
Summary
Adds three missing fields to
FlattenedPropertyinspecification/_types/mapping/complex.ts.preserve_leaf_arrays?: 'lossy' | 'exact'— controls how leaf arrays are reconstructed in synthetic_source(Add option to enable accurate leaf arrays for flattened fields elasticsearch#145376, merged 2026-04-07)properties?: Dictionary<PropertyName, Property>— maps specific keys within the flattened object as typed sub-fields (Add sub-field support to flattened field type elasticsearch#144451, merged 2026-03-26)passthrough?: FlattenedPropertyPassthrough— makes typed sub-fields queryable at root level without the flattened field prefix;priorityresolves naming conflicts (Add passthrough behavior for FlattenedFieldMapper mapped sub-fields elasticsearch#145131, merged 2026-04-01)All three are
@availability stack since=9.4.0 stability=stable. A newFlattenedPropertyPassthroughclass is added to hold the{ priority: integer }object shape.Test plan
FlattenedPropertyFlattenedPropertyPassthroughappears in the schema with requiredpriority: integer@availability stack since=9.4.0 stability=stableis reflected in output for all three fields