Skip to content

Conversation

@Kubik42
Copy link
Contributor

@Kubik42 Kubik42 commented Oct 28, 2025

This addresses #136345.

Note, this only addresses the new edge case described in the issue. The existing edge cases around FieldMapper.Builder are still present, but arguably are not as significant. For more context, read the issue above.

Luckily, only text fields were impacted by by this, as they're the only ones using builder.isSyntheticSourceEnabled() when initializing a field type. Keyword, match only text, annotated text, etc., all use MappingBuilderContext for that information.

@elasticsearchmachine
Copy link
Collaborator

Hi @Kubik42, I've created a changelog YAML for you.

@Kubik42 Kubik42 marked this pull request as ready for review October 28, 2025 23:55
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-storage-engine (Team:StorageEngine)

Copy link
Member

@martijnvg martijnvg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@Kubik42 Kubik42 merged commit 838ec71 into elastic:main Oct 29, 2025
34 checks passed
@Kubik42 Kubik42 deleted the kubik-synthetic-source-flag-consistency-fix branch October 29, 2025 16:02
shmuelhanoch pushed a commit to shmuelhanoch/elasticsearch that referenced this pull request Oct 29, 2025
)

* Fixed inconsistency in the isSyntheticSourceEnabled flag

* Update docs/changelog/137297.yaml
chrisparrinello pushed a commit to chrisparrinello/elasticsearch that referenced this pull request Nov 3, 2025
)

* Fixed inconsistency in the isSyntheticSourceEnabled flag

* Update docs/changelog/137297.yaml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants