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
Support min_children
and max_children
on has_child
query/filter
#6019
Labels
>enhancement
:Search/Search
Search-related issues that do not fall into other categories
v1.3.0
v2.0.0-beta1
Comments
+1 I like it |
Closed
clintongormley
added a commit
that referenced
this issue
May 30, 2014
Added support for min_children and max_children parameters to the has_child query and filter. A parent document will only be considered if a match if the number of matching children fall between the min/max bounds. Closes #6019
clintongormley
changed the title
Support
Parent/Child: Support Jul 16, 2014
minimum_should_match
on has_child
and nested
queriesmin_children
and max_children
on has_child
query/filter
@clintongormley sorry for bumping this, but is this possible with nested docs? |
@jsuchal currently not - this is a change that would have to go into Lucene, I believe. But you could open a separate issue requesting it if you like |
clintongormley
changed the title
Parent/Child: Support
Support Jun 7, 2015
min_children
and max_children
on has_child
query/filtermin_children
and max_children
on has_child
query/filter
clintongormley
added
:Search/Search
Search-related issues that do not fall into other categories
and removed
:Parent/Child
labels
Feb 14, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
>enhancement
:Search/Search
Search-related issues that do not fall into other categories
v1.3.0
v2.0.0-beta1
Currently it is very difficult and inefficient to write a query like:
The only way to do it is to:
has_child
query with an innerconstant_score
andscore_mode
ofsum
function_score
that resets the_score
to zero if the min count is not achievedmin_score
parameter to the overall queryIt would be much more efficient to be able to say:
Hopefully this could be applied to filters as well as queries?
/cc @martijnvg
The text was updated successfully, but these errors were encountered: