Instantly share code, notes, and snippets.

@falzm /.json
Last active Oct 4, 2015

Embed
What would you like to do?
Top 10 most albums per artist/band
{
"took" : 32,
"timed_out" : false,
"_shards" : {
"total" : 1,
"successful" : 1,
"failed" : 0
},
"hits" : {
"total" : 8392,
"max_score" : 0.0,
"hits" : [ ]
},
"aggregations" : {
"per_artist" : {
"doc_count_error_upper_bound" : -1,
"sum_other_doc_count" : 7313,
"buckets" : [ {
"key" : "Thrice",
"doc_count" : 143,
"artist_albums" : {
"value" : 14
}
}, {
"key" : "Muse",
"doc_count" : 147,
"artist_albums" : {
"value" : 12
}
}, {
"key" : "Nine Inch Nails",
"doc_count" : 156,
"artist_albums" : {
"value" : 9
}
}, {
"key" : "The Used",
"doc_count" : 113,
"artist_albums" : {
"value" : 9
}
}, {
"key" : "Avenged Sevenfold",
"doc_count" : 68,
"artist_albums" : {
"value" : 8
}
}, {
"key" : "EZ3kiel",
"doc_count" : 94,
"artist_albums" : {
"value" : 8
}
}, {
"key" : "Nobuo Uematsu",
"doc_count" : 166,
"artist_albums" : {
"value" : 8
}
}, {
"key" : "Disturbed",
"doc_count" : 102,
"artist_albums" : {
"value" : 7
}
}, {
"key" : "Feeder",
"doc_count" : 88,
"artist_albums" : {
"value" : 7
}
}, {
"key" : "Foo Fighters",
"doc_count" : 95,
"artist_albums" : {
"value" : 7
}
} ]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment