Skip to content

Instantly share code, notes, and snippets.

@metacpan-user
Last active November 18, 2016 01:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save metacpan-user/5521742 to your computer and use it in GitHub Desktop.
Save metacpan-user/5521742 to your computer and use it in GitHub Desktop.
Popular Files
{
"query": {
"constant_score": {
"filter": {
"term": { "level": 0 }
} }
},
"aggs": {
"filename": {
"terms": {
"field":"name"
} } },
"size":0
}
{
"timed_out" : false,
"hits" : {
"hits" : [],
"max_score" : 1,
"total" : 2090628
},
"_shards" : {
"failed" : 0,
"successful" : 5,
"total" : 5
},
"took" : 453,
"facets" : {
"filename" : {
"other" : 764514,
"terms" : [
{
"count" : 193652,
"term" : "MANIFEST"
},
{
"count" : 185555,
"term" : "Makefile.PL"
},
{
"count" : 177291,
"term" : "README"
},
{
"count" : 174971,
"term" : "t"
},
{
"count" : 158935,
"term" : "lib"
},
{
"count" : 158063,
"term" : "Changes"
},
{
"count" : 154723,
"term" : "META.yml"
},
{
"count" : 46578,
"term" : "LICENSE"
},
{
"count" : 38394,
"term" : "inc"
},
{
"count" : 37952,
"term" : "Build.PL"
}
],
"missing" : 0,
"_type" : "terms",
"total" : 2090628
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment