You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Nested query against documents with multiple nested fields with same second-level field names only finds hits for the first-defined nested field
#19193
Closed
jaimemarijke opened this issue
Jun 30, 2016
· 1 comment
Description of the problem including expected versus actual behavior:
I create a document with several nested fields on it. Then I added second-level fields of the same name on each of those nested fields. Then I tried a nested query against each of the paths, and found that only the first-defined path succeeded
Expected: Performing a nested query when a document has multiple nested fields with the same second-level field names succeeds
Actual: I only get hits for matches on the nested field that was defined first.
Steps to reproduce:
Create an index and document type with nested field mappings. Add a document which adds a field of the same name to each nested field.
Elasticsearch version: 1.7.3
JVM version: 1.7.0_101
OS version: Ubuntu 14.04.4 LTS
Description of the problem including expected versus actual behavior:
I create a document with several nested fields on it. Then I added second-level fields of the same name on each of those nested fields. Then I tried a nested query against each of the paths, and found that only the first-defined path succeeded
Expected: Performing a nested query when a document has multiple nested fields with the same second-level field names succeeds
Actual: I only get hits for matches on the nested field that was defined first.
Steps to reproduce:
2 . Check that nested mappings are defined correctly
3 . Try performing a nested filter query against the first-defined nested field. See that it correctly gets a hit.
4 . Try performing a nested filter query against the the later-defined nested fields. See that they do not get hits.
Provide logs (if relevant):
The text was updated successfully, but these errors were encountered: