OpenSearch/docs/reference/search/request/min-score.asciidoc

21 lines
454 B
Plaintext

[[request-body-search-min-score]]
==== min_score
Exclude documents which have a `_score` less than the minimum specified
in `min_score`:
[source,js]
--------------------------------------------------
GET /_search
{
"min_score": 0.5,
"query" : {
"term" : { "user" : "kimchy" }
}
}
--------------------------------------------------
// CONSOLE
Note, most times, this does not make much sense, but is provided for
advanced use cases.