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

has_child query can yield in wrong results if parent type has nested inner objects #4341

Closed
martijnvg opened this issue Dec 4, 2013 · 0 comments

Comments

@martijnvg
Copy link
Member

If a parent type has nested inner objects then the has_child query (with score_mode) can return wrong results. This is caused by an internal short circuiting mechanism and the fact that hidden nested Lucene document have the same uid as the main document. The internal short circuiting mechanism sees the hidden nested Lucene document as a hit and starts the countdown for short circuiting from the wrong hits. This results in too less hits being returned.

Relates to #4210 and is the reason why with ES version 1.0 beta2 too less results are being returned.

@ghost ghost assigned martijnvg Dec 4, 2013
martijnvg added a commit that referenced this issue Dec 4, 2013
… parent type has nested object types. The inner objects (Separate Lucene docs) are also emitted as hits, which incorrectly decreased the count down short circuit mechanism in the `has_child` query.

Closes #4341
@ghost ghost assigned imotov and martijnvg Dec 10, 2013
mute pushed a commit to mute/elasticsearch that referenced this issue Jul 29, 2015
… parent type has nested object types. The inner objects (Separate Lucene docs) are also emitted as hits, which incorrectly decreased the count down short circuit mechanism in the `has_child` query.

Closes elastic#4341
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants