Query_string & min_score?

Hi,

I have a basic query, and I wish to exclude all the results when the score is < 0.5.

It seems that min_score does not work with!

Noticed that I have a random_score, if I use min_score in "functions" it will be applied after the random, but I want to filter the result of the "query" or "query_string".

Is there a way ?

POST /posts_index/_search
{
	"track_total_hits": true,
	"from":10,
	"size":10,
	"_source": [
		"id",
		"tags",
		"taxonomies",
        "storesNames",
		"geoLocations",
		"storesIds",
		"imageUri",
		"imageTags"
	],	
	"query": {
		"function_score": {
			"query": {
				"bool": {
					"should": [
						{
							"query_string": {
								"fields": [
									"tags^3"
								],
								"query": "camera",
								"fuzziness": "auto"
						}
					}],
					"filter" : {
						"geo_distance" : {
							"distance" : "5km",
							"geoLocations" : {
								"lat" : 51.507611,
								"lon" : -0.127754
							}
						}
					}
				}
			},
			"functions": [
				{
					"random_score" : {
						"seed": 1,
						"field": "updateTime"
					}
				}
			],
			"score_mode": "multiply"
		}
	}
}

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.