I have a json
{
"uniqueKey": "918084",
"dataValue": {
"metadata": {
"timestamps": [{
"key": "startTime",
"value": "2017-02-07T18:00:00-06:00"
}, {
"key": "processedTime",
"value": "2017-02-07T18:05:00-06:00"
}]
}
}
}
I have to write a query to sort on startTime. Does anyone how I can write a query for this in elastic search. dataValue is a nested field.
"type" : "nested"fordataValue,metadataandtimestamp?