[[query-dsl-limit-filter]]
=== Limit Filter

deprecated[1.6.0, Use <<search-request-body,terminate_after>> instead]

A limit filter limits the number of documents (per shard) to execute on.
For example:

[source,js]
--------------------------------------------------
{
    "filtered" : {
        "filter" : {
             "limit" : {"value" : 100}
         },
         "query" : {
            "term" : { "name.first" : "shay" }
        }
    }
}
--------------------------------------------------
