Join field called "_type" is duplicated in the _search results #110438
Labels
>bug
priority:normal
A label for assessing bug priority to be used by ES engineers
:Search Foundations/Search
Catch all for Search Foundations
:StorageEngine/Logs
You know, for Logs
Team:Search Foundations
Meta label for the Search Foundations team in Elasticsearch
Team:StorageEngine
v8.14.0
Elasticsearch Version
8.14.1
Installed Plugins
No response
Java Version
bundled
OS Version
Linux 5.19.0-2-amd64 #1 SMP PREEMPT_DYNAMIC Debian 5.19.11-1 (2022-09-24) x86_64 GNU/Linux
Problem Description
If join field called
_type
it's duplicated in_search
request results.Problem appears at 8.14 release.
8.9; 8.12; 8.13 is ok.
Steps to Reproduce
make index and docs as example in documentation for join field type:
https://www.elastic.co/guide/en/elasticsearch/reference/8.14/parent-join.html
make search
curl 'localhost:9200/my-index-000001/_search?pretty'
got resutl like:
reproduce steps 1 and 2, but rename index name from
my-index-000001
tomy-index-000002
and join fieldmy_join_field
to_type
make search
curl 'localhost:9200/my-index-000002/_search?pretty'
result:
_type
field is duplicated inside and outside_source
expected:
_type
field present only inside_source
Logs (if relevant)
No response
The text was updated successfully, but these errors were encountered: