Skip to content

Instantly share code, notes, and snippets.

@andrey-yantsen
Created April 16, 2015 10:27
Show Gist options
  • Save andrey-yantsen/021489ebde3c0ccdb357 to your computer and use it in GitHub Desktop.
Save andrey-yantsen/021489ebde3c0ccdb357 to your computer and use it in GitHub Desktop.
{
"took": 355,
"timed_out": false,
"_shards": {
"total": 5,
"successful": 5,
"failed": 0
},
"hits": {
"total": 692653,
"max_score": 0,
"hits": [
]
},
"aggregations": {
"tripHotelType": {
"doc_count": 516,
"hotel_types": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "Romantic Hotel",
"doc_count": 180
},
{
"key": "Family Hotel",
"doc_count": 151
},
{
"key": "Hotel for Solo Travelers",
"doc_count": 113
},
{
"key": "Business Hotel",
"doc_count": 72
}
]
}
},
"hotelType": {
"doc_count": 149422,
"hotel_types": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "Budget Hotel",
"doc_count": 37469
},
{
"key": "City Hotel",
"doc_count": 35719
},
{
"key": "Design Hotel",
"doc_count": 20218
},
{
"key": "Business Hotel",
"doc_count": 13685
},
{
"key": "Club Hotel",
"doc_count": 8374
},
{
"key": "Beach Hotel",
"doc_count": 7346
},
{
"key": "Romantic Hotel",
"doc_count": 6668
},
{
"key": "Luxury Hotel",
"doc_count": 5715
},
{
"key": "Family Hotel",
"doc_count": 4812
},
{
"key": "Airport Hotel",
"doc_count": 2983
},
{
"key": "Boutique Hotel",
"doc_count": 2571
},
{
"key": "Golf Hotel",
"doc_count": 1081
},
{
"key": "Wellness Hotel",
"doc_count": 998
},
{
"key": "Water Park Hotel",
"doc_count": 734
},
{
"key": "Eco-friendly Hotel",
"doc_count": 359
},
{
"key": "Party Hotel",
"doc_count": 279
},
{
"key": "Casino Hotel",
"doc_count": 245
},
{
"key": "Lake Hotel",
"doc_count": 166
}
]
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment