Hello!
I want to sort a field that happens to be a string. but the actual value of that string is date.
Is there any way to convert this field to date?
GET /index/_search
{
"query": {
"bool": {
"must": [
{
"match": {
"product": "blah"
}
}
]
}
},
"sort": {
"string_date": {
"order": "desc"
}
}
}
Thank you!
/Angelos