2013-08-28 19:24:34 -04:00
|
|
|
[[search-request-min-score]]
|
|
|
|
=== min_score
|
|
|
|
|
2013-10-18 08:24:11 -04:00
|
|
|
Exclude documents which have a `_score` less than the minimum specified
|
|
|
|
in `min_score`:
|
2013-08-28 19:24:34 -04:00
|
|
|
|
|
|
|
[source,js]
|
|
|
|
--------------------------------------------------
|
2016-05-18 07:15:19 -04:00
|
|
|
GET /_search
|
2013-08-28 19:24:34 -04:00
|
|
|
{
|
|
|
|
"min_score": 0.5,
|
|
|
|
"query" : {
|
|
|
|
"term" : { "user" : "kimchy" }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
--------------------------------------------------
|
2016-05-18 07:15:19 -04:00
|
|
|
// CONSOLE
|
2013-08-28 19:24:34 -04:00
|
|
|
|
|
|
|
Note, most times, this does not make much sense, but is provided for
|
2013-10-18 08:24:11 -04:00
|
|
|
advanced use cases.
|