Last active
August 29, 2015 14:11
-
-
Save mewwts/49e0fdf5bff3aeda521a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from addict import Dict | |
body = Dict() | |
body.size = 0 | |
body.query.filtered.filter.has_parent.type = 'repos' | |
body.query.filtered.query.filtered.filter.term.tags = 'python' | |
body.facets.committers.terms_stats = {'key_field': 'committer.name.raw', | |
'value_field': 'stats.lines'} | |
result = es.search(index='git', doc_type='commits', body=body) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment