From 408093440c15a1708d0c1d379753a52f92d16ceb Mon Sep 17 00:00:00 2001 From: wangxiaolei Date: Tue, 10 Apr 2018 00:30:09 +0800 Subject: [PATCH] Support terminate_after for count api. (#754) --- elasticsearch/client/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elasticsearch/client/__init__.py b/elasticsearch/client/__init__.py index 1780c32d..31af6e2b 100644 --- a/elasticsearch/client/__init__.py +++ b/elasticsearch/client/__init__.py @@ -1066,7 +1066,7 @@ class Elasticsearch(object): @query_params('allow_no_indices', 'analyze_wildcard', 'analyzer', 'default_operator', 'df', 'expand_wildcards', 'ignore_unavailable', - 'lenient', 'min_score', 'preference', 'q', 'routing') + 'lenient', 'min_score', 'preference', 'q', 'routing', 'terminate_after') def count(self, index=None, doc_type=None, body=None, params=None): """ Execute a query and get the number of matches for that query.