GET /_search
{
"min_score": 0.5,
"query" : {
"term" : { "user" : "kimchy" }
}
}
Documents are here: min_score
I found that neither q = Q('query_string', query=str_query, min_score=4.0) nor Search().query(q, min_score=4.0) would work.
And, if it isn't going to be supported by elasticsearch-dsl, is there any way to filter result by score?
the min_score is a top-level argument in the body, to inject your keys into the body you can use the extra method. so in this case: s = Search().query().extra(min_score=4.0)
Hope this helps
Most helpful comment
the
min_scoreis a top-level argument in thebody, to inject your keys into the body you can use theextramethod. so in this case:s = Search().query().extra(min_score=4.0)Hope this helps