2019-07-17 08:49:22 -04:00
|
|
|
[[request-body-search-query]]
|
2019-07-19 14:35:36 -04:00
|
|
|
==== Query
|
2013-08-28 19:24:34 -04:00
|
|
|
|
|
|
|
The query element within the search request body allows to define a
|
|
|
|
query using the <<query-dsl,Query DSL>>.
|
|
|
|
|
2019-09-09 12:35:50 -04:00
|
|
|
[source,console]
|
2013-08-28 19:24:34 -04:00
|
|
|
--------------------------------------------------
|
2016-05-18 07:15:19 -04:00
|
|
|
GET /_search
|
2013-08-28 19:24:34 -04:00
|
|
|
{
|
|
|
|
"query" : {
|
|
|
|
"term" : { "user" : "kimchy" }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
--------------------------------------------------
|