kvspb / nginx-auth-ldap

LDAP authentication module for nginx
BSD 2-Clause "Simplified" License
735 stars 252 forks source link

How to implement a count like _count in elasticsearch with elasticsearch_dsl over python #97

Closed juandasgandaras closed 9 years ago

juandasgandaras commented 9 years ago

How I can do a query to count all parameters from an index accoding to a specific query. I want to say I do not know do this query with elastichsearch_dsl:

GET my_index/my_type/_count { "query": { "match_all": {} } }

for example we have as result this:

{ "count": 2472, "_shards": { "total": 5, "successful": 5, "failed": 0 } }

Thanks in advance