I've an index of dummy logs having a field called "sequence" I want to sort on basis of this field, so while getting the data in ElasticSearch I use the following query
{
"query": {
"match": {
"trace_id": "5f6e223c-b5ac-11e8-96f8-529269fb1459"
}
},
"sort": [
{
"sequence": {
"order": "asc"
}
}
]
}
This works perfectly fine and gives me docs in ascending order. But when I put same query in Kibana's discover tab's filter using edit query DSL it only searches for docs with trace_id = 5f6e223c-b5ac-11e8-96f8-529269fb1459 and does not sort these docs.
Can anyone explain what I am doing wrong here?
Thanks,
Malay M