Skip to content
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

Inner hits should fail when the same name is used multiple times in the same query #21055

Closed
jpountz opened this issue Oct 21, 2016 · 4 comments
Labels
>bug help wanted adoptme :Search/Search Search-related issues that do not fall into other categories

Comments

@jpountz
Copy link
Contributor

jpountz commented Oct 21, 2016

This typically happens if the query contains eg. two inner hits definitions on the same nested path and does not define explicit names for inner hits.

@martijnvg
Copy link
Member

Additionally we can maybe also make name option required.

@jpountz
Copy link
Contributor Author

jpountz commented Oct 21, 2016

I think users like the fact that we use a name that is a good description of the join by default. Also most queries should be reasonable and only do one join. So I'd be leaning towards keeping name optional.

@clintongormley clintongormley added :Search/Search Search-related issues that do not fall into other categories and removed :Inner Hits labels Feb 14, 2018
@andyb-elastic
Copy link
Contributor

It looks like duplicate names are still allowed in master, both with name explicitly provided or not. This sounds like something we likely still want to do

@elastic/es-search-aggs

@jimczi
Copy link
Contributor

jimczi commented Apr 18, 2019

This was implemented in #37645, hence closing

@jimczi jimczi closed this as completed Apr 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug help wanted adoptme :Search/Search Search-related issues that do not fall into other categories
Projects
None yet
Development

No branches or pull requests

5 participants