Hey guys,
I would like to sort the data in Kibana Discover (version 5.6.3) by a field mapped as keyword, ascending. I know that it is possible to achieve such query in Elasticsearch, below I am providing the command (relevant data grepped out for brevity):
curl -X GET 'http://<someurl>:<someport>/<someindex>/_search' --user <somecredentials> -d '{"query":{ "match_all": {} }, "sort":[{"epoch.keyword":{"order":"asc"}}]}' | python -m json.tool | grep epoch
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 7569 100 7500 100 69 48622 447 --:--:-- --:--:-- --:--:-- 48701
"epoch": "1510238524.255196",
"epoch": "1510238524.2578862",
"epoch": "1510238524.2595582",
"epoch": "1510238526.231628",
"epoch": "1510238526.2461028",
"epoch": "1510238526.2461133",
"epoch": "1510238526.2502348",
"epoch": "1510238526.2502463",
"epoch": "1510238526.2802055",
"epoch": "1510238526.2821074",
How can I implement the same query in Kibana Discover?
EDIT: I am also providing the link to the stackoverflow post, there's also the field mapping there (couldn't fit it here because of char limits)