浏览代码

[API] Added the `terminate_after` parameter to the REST spec for "Count" API

Closes #26895
Karel Minarik 8 年之前
父节点
当前提交
6825cafaa6
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      rest-api-spec/src/main/resources/rest-api-spec/api/count.json

+ 4 - 0
rest-api-spec/src/main/resources/rest-api-spec/api/count.json

@@ -67,6 +67,10 @@
         "lenient": {
         "lenient": {
           "type" : "boolean",
           "type" : "boolean",
           "description" : "Specify whether format-based query failures (such as providing text to a numeric field) should be ignored"
           "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"
         }
         }
       }
       }
     },
     },