From 6825cafaa6ec04b70e69148a9dea785826b0d5d0 Mon Sep 17 00:00:00 2001 From: Karel Minarik Date: Thu, 5 Oct 2017 18:28:33 +0200 Subject: [PATCH] [API] Added the `terminate_after` parameter to the REST spec for "Count" API Closes #26895 --- rest-api-spec/src/main/resources/rest-api-spec/api/count.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/count.json b/rest-api-spec/src/main/resources/rest-api-spec/api/count.json index 0e2697cd524..1275983ef23 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/count.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/count.json @@ -67,6 +67,10 @@ "lenient": { "type" : "boolean", "description" : "Specify whether format-based query failures (such as providing text to a numeric field) should be ignored" + }, + "terminate_after" : { + "type" : "number", + "description" : "The maximum count for each shard, upon reaching which the query execution will terminate early" } } },