OpenSearch/docs/reference/query-dsl/limit-query.asciidoc

20 lines
422 B
Plaintext

[[query-dsl-limit-query]]
=== Limit Query
A limit query limits the number of documents (per shard) to execute on.
For example:
[source,js]
--------------------------------------------------
{
"filtered" : {
"filter" : {
"limit" : {"value" : 100}
},
"query" : {
"term" : { "name.first" : "shay" }
}
}
}
--------------------------------------------------