From cfc8aa2c237e1017a33b23b4bb919a8859466b8b Mon Sep 17 00:00:00 2001 From: markharwood Date: Fri, 18 Sep 2015 12:33:49 +0100 Subject: [PATCH] Add `min_score` parameter to function score query to only match docs above this threshold #7814 --- public/webpackShims/kb/api_2_0/query.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/webpackShims/kb/api_2_0/query.js b/public/webpackShims/kb/api_2_0/query.js index 7e34bea315325..303b8258db47f 100644 --- a/public/webpackShims/kb/api_2_0/query.js +++ b/public/webpackShims/kb/api_2_0/query.js @@ -605,7 +605,8 @@ define(['vendor/_'], function (_) { boost: 1.0, boost_mode: { __one_of: ["multiply", "replace", "sum", "avg", "max", "min"]}, score_mode: { __one_of: ["multiply", "sum", "first", "avg", "max", "min"]}, - max_boost: 10 + max_boost: 10, + min_score: 1.0 }, SCORING_FUNCS )