mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-07 05:28:34 +00:00
Relates to #18160 Touches explain, fielddata-fields, fields, index-boost, min-score, named-queries-and-filters, query
17 lines
349 B
Plaintext
17 lines
349 B
Plaintext
[[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]
|
|
--------------------------------------------------
|
|
GET /_search
|
|
{
|
|
"query" : {
|
|
"term" : { "user" : "kimchy" }
|
|
}
|
|
}
|
|
--------------------------------------------------
|
|
// CONSOLE
|