How can we get the key values in a query response using ctx variables

{
“_shards”: {
“total”: 85,
“failed”: 0,
“successful”: 85,
“skipped”: 0
},
“hits”: {
“hits”: ,
“total”: {
“value”: 1,
“relation”: “eq”
},
“max_score”: null
},
“took”: 58,
“timed_out”: false,
“aggregations”: {
“display”: {
“doc_count_error_upper_bound”: 0,
“sum_other_doc_count”: 0,
“buckets”: [
{
“doc_count”: 1,
“key”: “SELECT query is here”
“querytime”: {
“doc_count_error_upper_bound”: 0,
“sum_other_doc_count”: 0,
“buckets”: [
{
“doc_count”: 1,
“key”: 413905632000
}
]
}
}
]
}
}
}

hello @sateesh - can you provide a little more detail? I want to make sure I understand what you’re looking for

hey @kris actually i got the values which i expected thanks for the response

1 Like