Created
July 30, 2014 19:44
-
-
Save robertogyn19/3dba337c11bdf90ce1f0 to your computer and use it in GitHub Desktop.
ElasticSearch terms agg using script and _source
This file contains hidden or 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
{ | |
"aggs": { | |
"terms_agg": { | |
"terms": { | |
"script": "_source.sms.size()" | |
} | |
} | |
}, | |
"size": 0 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment