Instantly share code, notes, and snippets.

@falzm /.json
Last active Aug 1, 2018

Embed
What would you like to do?
Top 10 longest album durations (fixed)
{
"took" : 22,
"timed_out" : false,
"_shards" : {
"total" : 1,
"successful" : 1,
"failed" : 0
},
"hits" : {
"total" : 8392,
"max_score" : 0.0,
"hits" : [ ]
},
"aggregations" : {
"per_album" : {
"doc_count_error_upper_bound" : -1,
"sum_other_doc_count" : 8020,
"buckets" : [ {
"key" : "Final Fantasy VIII - Original Soundtrack",
"doc_count" : 74,
"album_duration" : {
"value" : 14932.0
}
}, {
"key" : "The Girl With The Dragon Tattoo",
"doc_count" : 39,
"album_duration" : {
"value" : 10414.0
}
}, {
"key" : "Chopin: Essential Classic",
"doc_count" : 41,
"album_duration" : {
"value" : 9510.0
}
}, {
"key" : "The Dark Knight",
"doc_count" : 28,
"album_duration" : {
"value" : 8776.0
}
}, {
"key" : "Mad Max: Fury Road",
"doc_count" : 26,
"album_duration" : {
"value" : 7508.0
}
}, {
"key" : "The Amazing Spider-Man 2 (The Original Motion Picture Soundtrack) [Deluxe]",
"doc_count" : 31,
"album_duration" : {
"value" : 6906.0
}
}, {
"key" : "The Incredible Hulk",
"doc_count" : 45,
"album_duration" : {
"value" : 6660.0
}
}, {
"key" : "Ghosts I-IV",
"doc_count" : 36,
"album_duration" : {
"value" : 6609.0
}
}, {
"key" : "Chopin - 19 Nocturnes",
"doc_count" : 19,
"album_duration" : {
"value" : 6418.0
}
}, {
"key" : "The Fragile",
"doc_count" : 23,
"album_duration" : {
"value" : 6219.0
}
} ]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment