You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes, returning a Date as a long or String might be preferred to that of a rich object where available. While the user can do so by implementing their own deserializer, it would be nice/convenient to have this provided out of the box.
The text was updated successfully, but these errors were encountered:
I'm not entirely sure if this is being considered or not, but it does seem that this is less of a static configuration if I'm understanding it correctly.
ES seems to allow you to write a Date value in a variety of formats. What I'm hoping for is that the interfaces between ES and processing frameworks like Hadoop and Spark will dynamically deserialize into the correct data type given the format it is stored in.
and I index a long UTC millis value to created_at and a human readable date string to updated_at I would expect to get the same formats back during the deserialization process.
Introduce 'es.mapping.date.rich` to allow the types from Elasticsearch
to be returned in primitive form (String or Long) vs rich objects
(such as Date or Timestamp).
Rework some of the existing readers to return a Date object instead of
a Long
relates #422
The issue has been addressed in master, the docs updated and the nightly builds published.
In short, by default, date objects are returned as rich objects (they vary depending on the library used). To get the fields as primitives (long or String depending on how they are stored), one should use es.mapping.date.rich field and configure it to false.
Sometimes, returning a Date as a
long
orString
might be preferred to that of a rich object where available. While the user can do so by implementing their own deserializer, it would be nice/convenient to have this provided out of the box.The text was updated successfully, but these errors were encountered: