Skip to content

Instantly share code, notes, and snippets.

@whoisdevd
Created August 24, 2020 20:48
Show Gist options
  • Save whoisdevd/28ecfa55934817af091958626484b327 to your computer and use it in GitHub Desktop.
Save whoisdevd/28ecfa55934817af091958626484b327 to your computer and use it in GitHub Desktop.
ES Kibana
{
"took": 0,
"timed_out": false,
"_shards": {
"total": 5,
"successful": 5,
"skipped": 0,
"failed": 0
},
"hits": {
"total": 2,
"max_score": 1,
"hits": [
{
"_index": "restaurant",
"_type": "doc",
"_id": "647f67c6-99b8-462f-8ce0-5b4515c6845d",
"_score": 1,
"_source": {
"doc": {
"name": "Test Restaurant"
}
}
},
{
"_index": "restaurant",
"_type": "doc",
"_id": "f852af13-aecd-4614-848e-6cb57348dbac",
"_score": 1,
"_source": {
"createdAt": "2020-08-17T16:31:27.550Z",
"address": {
"zip": 700051,
"country": "India",
"city": "Kolkata",
"street": "Birati More",
"locality": "Birati",
"location": {
"lon": 88.44064950942995,
"lat": 22.657076460255606
},
"state": "West Bengal"
},
"__typename": "Restaurant",
"name": "Bhajahari Ranna",
"id": "f852af13-aecd-4614-848e-6cb57348dbac",
"updatedAt": "2020-08-17T16:31:27.550Z",
"interactions": [
{
"interactedAt": "2020-07-30T13:50:10.760Z",
"restaurantId": "f852af13-aecd-4614-848e-6cb57348dbac",
"type": "Liked",
"userId": "18b607fb-0900-4a6b-b324-3fb91a81c665"
},
{
"interactedAt": "2020-08-20T19:40:03.743Z",
"restaurantId": "f852af13-aecd-4614-848e-6cb57348dbac",
"type": "Liked",
"userId": "18b607fb-0900-4a6b-b324-3fb91a81c665"
},
{
"interactedAt": "2020-08-20T19:55:52.111Z",
"restaurantId": "f852af13-aecd-4614-848e-6cb57348dbac",
"type": "Liked",
"userId": "18b607fb-0900-4a6b-b324-3fb91a81c665"
},
{
"interactedAt": "2020-08-20T20:34:02.325Z",
"restaurantId": "f852af13-aecd-4614-848e-6cb57348dbac",
"type": "Disliked",
"userId": "18b607fb-0900-4a6b-b324-3fb91a81c665"
},
{
"interactedAt": "2020-08-22T05:04:45.111Z",
"restaurantId": "f852af13-aecd-4614-848e-6cb57348dbac",
"type": "Disliked",
"userId": "18b607fb-0900-4a6b-b324-3fb91a81c665"
}
]
}
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment