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

17 lines
354 B
Plaintext

[[request-body-search-query]]
=== Query
The query element within the search request body allows to define a
query using the <<query-dsl,Query DSL>>.
[source,js]
--------------------------------------------------
GET /_search
{
"query" : {
"term" : { "user" : "kimchy" }
}
}
--------------------------------------------------
// CONSOLE