Support terminate_after for count api. (#754)

This commit is contained in:
wangxiaolei
2018-04-09 10:30:09 -06:00
committed by Nick Lang
parent c4a0a54006
commit 408093440c
+1 -1
View File
@@ -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.