2013-08-28 19:24:34 -04:00
|
|
|
[[search-request-explain]]
|
|
|
|
=== Explain
|
|
|
|
|
|
|
|
Enables explanation for each hit on how its score was computed.
|
|
|
|
|
|
|
|
[source,js]
|
|
|
|
--------------------------------------------------
|
2016-05-18 07:15:19 -04:00
|
|
|
GET /_search
|
2013-08-28 19:24:34 -04:00
|
|
|
{
|
|
|
|
"explain": true,
|
|
|
|
"query" : {
|
|
|
|
"term" : { "user" : "kimchy" }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
--------------------------------------------------
|
2016-05-18 07:15:19 -04:00
|
|
|
// CONSOLE
|