My Search query works fine (I hope) but sometimes I have too many results with score like 1.5, 0.7, 0.6... or 0.1, 0.001, 0.001... Is it possible to block low relevance results? Fixed value is unsuitable - because it depends of maximum _score (score of most relevant result). It shuld work like "block all results which has _score twice less then maximum _score (score of most relevant result)"
{
"query": {
"bool": {
"disable_coord": true,
"must": [
{ "match": {
"ObjectTypeSysName": {
"query": "participant"
}
}
},
{ "match": {
"_all": {
"query": "text-to-find",
"operator": "and",
"fuzziness": "AUTO",
"minimum_should_match": 1
}
}}
],
"should": [
{ "multi_match" : {
"query": "text-to-find",
"type": "best_fields",
"fields": [
"*NAME",
"ObjectData.EXTERNALID",
"ObjectData.contactList.VALUE",
"*SERIES",
"*NUMBER"
],
"operator": "or",
"boost": 2
}}
]
}
}
}