Search: Allow to filter out docs based on a minimum score #719

Closed
kimchy opened this Issue Feb 24, 2011 · 4 comments

Projects

None yet

3 participants

@kimchy
elastic member

Allow to filter docs based on a minimum score, for example:

{
    "min_score": 0.5,
    "query" : {
        "term" : { "user" : "kimchy" }
    }
}
@kimchy
elastic member

Search: Allow to filter out docs based on a minimum score, closed by 8a03ca1.

@lukas-vlcek

Does it work against the relative document score value only? How about filtering documents based on percentiles of the max score? For example filtering out documents having score below 70% of max score value?

@kimchy
elastic member

Nope, you can't really do that based on percentage since you don't know the max score before a full pass has been done over the hits. I guess we can execute the query twice, but its wasteful.

@chendo

Does this work with More Like This? I tried it in the GET request body as well as the query string.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment