If you do something like this, you should get the epoch value in milliseconds. Then you can use that value to initialize whatever object you want:
ScriptDocValues v = (ScriptDocValues) doc().get(dateField); if (v != null && !v.isEmpty()) { long epoch_ms = ((Longs)v).getValue(); } -- You received this message because you are subscribed to the Google Groups "elasticsearch" group. To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/f746d44b-f9dd-4c65-a4af-f653fb8e86c8%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.