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

Query DSL: Add min_score support to function_score query #6952

Closed
clintongormley opened this issue Jul 22, 2014 · 2 comments

Comments

@clintongormley
Copy link
Member

commented Jul 22, 2014

I've sometimes needed to use the function_score query to generate some custom score, and then I want to exclude documents that don't meet a minimum score.

Currently I can do this by setting the _score to zero then using the min_score parameter in the search request. However, sometimes I want to apply the same logic further down in the hierarchy.

Adding min_score support to the function_score query would allow me to achieve that, ie filter out all documents whose score is lower than the specified.

@ccodina

This comment has been minimized.

Copy link

commented Aug 8, 2014

hi,
that's a good idea .. i need this feature too in the function_score ^^
regards,
chris

@brwe brwe self-assigned this Sep 21, 2014
@brwe brwe added v2.0.0-beta1 v1.5.0 and removed discuss labels Sep 22, 2014
brwe added a commit to brwe/elasticsearch that referenced this issue Nov 27, 2014
…eshold

functon_score matched each document regardless of the computed score.
This commit adds a query parameter `min_score` (-Float.MAX_VALUE default).
Documents that have a score lower than this threshold will not be mached.

closes elastic#6952
@brwe brwe closed this in 59507cf Nov 28, 2014
brwe added a commit that referenced this issue Nov 28, 2014
…eshold

functon_score matched each document regardless of the computed score.
This commit adds a query parameter `min_score` (-Float.MAX_VALUE default).
Documents that have a score lower than this threshold will not be mached.

closes #6952
@clintongormley

This comment has been minimized.

Copy link
Member Author

commented Nov 28, 2014

w00t

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.