Skip to content

Commit

Permalink
Add min_score parameter to function score query to only match docs …
Browse files Browse the repository at this point in the history
…above this threshold elastic#7814
  • Loading branch information
markharwood committed Sep 18, 2015
1 parent d2473fc commit cfc8aa2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion public/webpackShims/kb/api_2_0/query.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down

0 comments on commit cfc8aa2

Please sign in to comment.