I've sent a pull request:
https://github.com/hibernate/hibernate-search/pull/887
Davide
On Mon, Aug 10, 2015 at 1:20 PM, Hardy Ferentschik <hardy(a)hibernate.org>
wrote:
On Mon, Aug 10, 2015 at 12:34:33PM +0100, Davide D'Alto wrote:
> I'm not sure there is an easy way to convert Instant and DateTime to a
> numeric value.
> The problem is that the resolution for temporal types is nanoseconds, the
> following datetime is valid:
>
> year: -999.999.999
> month: 12
> day: 31
> hour: 23
> minute: 59
> second: 59
> nanos: 999.999.999
>
> It gets more complicated when we need to store Offset or time zone.
Why not just call Instant#toEpochMilli. I thought we agreed that for
instant
based time we stick to epoch time. There might be a loss in resolution, but
I think this is fine in our case.
--Hardy