-
Notifications
You must be signed in to change notification settings - Fork 25k
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
Dotted named field values can merge with non-dotted fields of the same name #65333
Labels
>bug
:Search Foundations/Mapping
Index mappings, including merging and defining field types
Team:Search Foundations
Meta label for the Search Foundations team in Elasticsearch
Comments
n0othing
added
>bug
:Search Foundations/Mapping
Index mappings, including merging and defining field types
needs:triage
Requires assignment of a team area label
labels
Nov 20, 2020
Pinging @elastic/es-search (Team:Search) |
Thanks @n0othing for raising this, it's a great catch. In addition to the requirements you listed, it seems this only happens if the dynamic field value is an array. I think this bug has existed for a long time, I tested on 6.8 and saw the same issue. Here's the piece of code that seems to be off: DocumentParser.java#L573. |
javanna
added a commit
to javanna/elasticsearch
that referenced
this issue
Mar 17, 2022
Previously, when using dynamic: false, an array field with a dot in its name, whose suffix matched a mapped field’s name, had its values merged with the mapped field unexpectedly. This has been fixed by elastic#79922 This commit adds a test for that scenario and verifies that the bug is fixed. Closes elastic#65333
javanna
added a commit
that referenced
this issue
Mar 18, 2022
Previously, when using dynamic: false, an array field with a dot in its name, whose suffix matched a mapped field’s name, had its values merged with the mapped field unexpectedly. This has been fixed by #79922 This commit adds a test for that scenario and verifies that the bug is fixed. Closes #65333
javanna
added
Team:Search Foundations
Meta label for the Search Foundations team in Elasticsearch
and removed
Team:Search
Meta label for search team
labels
Jul 16, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
>bug
:Search Foundations/Mapping
Index mappings, including merging and defining field types
Team:Search Foundations
Meta label for the Search Foundations team in Elasticsearch
Elasticsearch version (
bin/elasticsearch --version
):version: 7.10.0, Build: default/tar/51e9d6f22758d0374a0f3f5c6e8f3a7997850f96/2020-11-09T21:30:33.964949Z, JVM: 15.0.1
Plugins installed: []
JVM version (
java -version
):JVM: 15.0.1
(bundled)OS version (
uname -a
if on a Unix-like system): macOS 10.15.7Description of the problem including expected versus actual behavior:
When using
dynamic: false
a field with a dot in its name, whose suffix matches a mapped field’s name has its values merged with the mapped field unexpectedly:Steps to reproduce:
Results in:
In the above,
something.myfield
's values are getting added tomyfield
. This doesn't happen ifsomething.myfield
is mapped/indexed.The text was updated successfully, but these errors were encountered: