Created
October 18, 2014 17:28
-
-
Save pmanvi/5ba0d467061ac0b0a3af to your computer and use it in GitHub Desktop.
enron_email_size_aggregator ES query
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
{ | |
"aggs": { | |
"enron_size_ranges": { | |
"range": { | |
"field": "content_size_in_bytes", | |
"ranges": [ | |
{ | |
"key": "0KB to 1KB", | |
"from": 0, | |
"to": 1024 | |
}, | |
{ | |
"key": "1KB to 5KB", | |
"from": 1024, | |
"to": 5120 | |
}, | |
{ | |
"key": "5KB to 10 KB", | |
"from": 5120, | |
"to": 100240 | |
}, | |
{ | |
"key": "10K to 1MB", | |
"from": 100240, | |
"to": 1048576 | |
}, | |
{ | |
"key": "> 1MB", | |
"from": 1073741824 | |
} | |
] | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment