OpenSearch/docs/reference/search/request/explain.asciidoc

17 lines
334 B
Plaintext

[[request-body-search-explain]]
=== Explain
Enables explanation for each hit on how its score was computed.
[source,js]
--------------------------------------------------
GET /_search
{
"explain": true,
"query" : {
"term" : { "user" : "kimchy" }
}
}
--------------------------------------------------
// CONSOLE