I have an Elasticsearch query that looks something like this,
{
size: 25,
query: {
bool: {
filter: ...,
must: ...
}
},
sort: [
{
created_at: {
order: "desc
}
},
{
id: {
order: "desc"
}
}
],
from: 0,
search_after: ["2018-10-25T18:04:13.488Z", "8"]
}
When I run this I get an error saying,
"reason": Failed to parse search_after value for field [created_at], caused_by":{"type":"number_format_exception","reason":"For input string: \"2018-10-23T21:41:03.167Z\"
I tried mapping the created_at property with type of date and format of date_time, but that didn't seem to help.
Can anyone shed some light on how I can solve this?