We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b2fa6c commit 812239bCopy full SHA for 812239b
test_elasticsearch_dsl/test_integration/test_count.py
@@ -13,3 +13,12 @@ def test_count_filter(data_client):
13
# initial commit + repo document
14
assert 2 == s.count()
15
16
+def test_search_type_count(data_client):
17
+ s = Search(using=data_client, index='git')
18
+ s.aggs.bucket('per_type', 'terms', field='_type')
19
+ s = s.params(search_type='count')
20
+ result = s.execute()
21
+
22
+ assert [] == result.hits
23
+ assert 2 == len(result.aggregations.per_type.buckets)
24
0 commit comments