2013-08-28 19:24:34 -04:00
|
|
|
[[search-request-query]]
|
|
|
|
=== Query
|
|
|
|
|
|
|
|
The query element within the search request body allows to define a
|
|
|
|
query using the <<query-dsl,Query DSL>>.
|
|
|
|
|
|
|
|
[source,js]
|
|
|
|
--------------------------------------------------
|
2016-05-18 07:15:19 -04:00
|
|
|
GET /_search
|
2013-08-28 19:24:34 -04:00
|
|
|
{
|
|
|
|
"query" : {
|
|
|
|
"term" : { "user" : "kimchy" }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
--------------------------------------------------
|
2016-05-18 07:15:19 -04:00
|
|
|
// CONSOLE
|