Date sorting

Hello,

I have a question on sorting the result of a query on a date field.
The dates I have are stored as longs (epoch_millis).
When I only sort on this date column I want the hours, minutes,... to be taken into account.

If I add another field to sort on. I want only the date part (dd-mm-yyyy) to be taken into account in my date sorting because the other field will sort my records with the same date.

Is there an option to do so with Elasticsearch.

I use Elasticsearch 2.4 with a dynamic mapping.

Many thanks!

Maarten

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.