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

Parent-Child: Improve has_parent & has_child filter execution #3034

Closed
martijnvg opened this Issue May 14, 2013 · 0 comments

Comments

Projects
None yet
1 participant
@martijnvg
Copy link
Member

commented May 14, 2013

Both has_parent and has_child filters are internally executed in two rounds. In the second round all documents are evaluated whilst only specific documents need to be checked. In the has_child case only documents belonging to a specific parent type need to be checked and in the has_parent case only child documents need to be checked.

@martijnvg martijnvg closed this in 906f278 May 14, 2013

martijnvg added a commit that referenced this issue May 14, 2013

Make sure only relevant documents are evaluated in the second round l…
…ookup phase.

Both has_parent and has_child filters are internally executed in two rounds. In the second round all documents are evaluated whilst only specific documents need to be checked. In the has_child case only documents belonging to a specific parent type need to be checked and in the has_parent case only child documents need to be checked.

Closes #3034

mute pushed a commit to mute/elasticsearch that referenced this issue Jul 29, 2015

Make sure only relevant documents are evaluated in the second round l…
…ookup phase.

Both has_parent and has_child filters are internally executed in two rounds. In the second round all documents are evaluated whilst only specific documents need to be checked. In the has_child case only documents belonging to a specific parent type need to be checked and in the has_parent case only child documents need to be checked.

Closes elastic#3034
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.