WARNING: Version 2.0 of Elasticsearch has passed its EOL date.
This documentation is no longer being maintained and may be removed. If you are running this version, we strongly advise you to upgrade. For the latest information, see the current release documentation.
Limit Query
edit
IMPORTANT: This documentation is no longer updated. Refer to Elastic's version policy and the latest documentation.
Limit Query
editDeprecated in 2.0.0-beta1.
Use the terminate_after
parameter instead
A limit query limits the number of documents (per shard) to execute on. For example:
{ "filtered" : { "filter" : { "limit" : {"value" : 100} }, "query" : { "term" : { "name.first" : "shay" } } } }
Was this helpful?
Thank you for your feedback.