I want to be able to filter my search results for less relevant results. So I use the min_score
for filtering.
like this:
GET xxx/_search
{
"min_score": 2.8,
"query": {
"match": {
"xxx": "xxxx"
}
}
}
But the max_score is different for different search keyword, which leads to the fact that sometimes I need to filter results with a score less than 20 and sometimes I need to filter results with a score less than 10.
And this threshold I have no way to determine, anyone have any ideas?
For example, I searched for the term Maciachini Apartments R&R
and the results returned with a score greater than 20 met my needs (return max_score is 40+) . But when I searched for the term R R
, the words with a score greater than 10 were the ones I needed (return max_score is 10+) . So how do I determine this threshold?
Can there be any way to return es to a uniform score standard? Or is there any way I can filter the data for 80% of the maximum score?
Like this
GET xxx/_search
{
"min_score": max_score*0.8,
"query": {
"match": {
"xxx": "xxxx"
}
}
}