Skip to content

Instantly share code, notes, and snippets.

Created March 18, 2018 15: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 anonymous/cd2de1ccdedf072f40b69b9094afa05e to your computer and use it in GitHub Desktop.
Save anonymous/cd2de1ccdedf072f40b69b9094afa05e to your computer and use it in GitHub Desktop.
Elasticsearch response in json format
{
"took": 16,
"timed_out": false,
"_shards": {
"total": 5,
"successful": 5,
"skipped": 0,
"failed": 0
},
"hits": {
"total": 2,
"max_score": 1,
"hits": [
{
"_index": "demo",
"_type": "demo",
"_id": "OSScKmIBKBDaRuGPyr42",
"_score": 1,
"_source": {
"demoId": "2",
"demoName": "j",
"uniqueDemo": "jab1980xy11b"
}
},
{
"_index": "demo",
"_type": "demo",
"_id": "OCScKmIBKBDaRuGPyr42",
"_score": 1,
"_source": {
"demoId": "2",
"demoName": "j",
"uniqueDemo": "jmb1970oi611234554321123a"
}
}
]
},
"aggregations": {
"dashboard": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "jab1980xy11b",
"doc_count": 1,
"data": {
"hits": {
"total": 1,
"max_score": 1,
"hits": [
{
"_index": "demo",
"_type": "demo",
"_id": "OSScKmIBKBDaRuGPyr42",
"_score": 1,
"_source": {
"demoId": "2",
"demoName": "j"
}
}
]
}
}
},
{
"key": "jmb1970oi611234554321123a",
"doc_count": 1,
"data": {
"hits": {
"total": 1,
"max_score": 1,
"hits": [
{
"_index": "demo",
"_type": "demo",
"_id": "OCScKmIBKBDaRuGPyr42",
"_score": 1,
"_source": {
"demoId": "2",
"demoName": "j"
}
}
]
}
}
}
]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment