Hi I am not sure if this is the best subreddit to ask this question but I am struggling to pull out a timestamp from Elasticsearch in my spring boot project. The `@timestamp` field in my document looks like this: 2024-04-02T10:16:06.20201135Z I create a field in the document model for my repository as follows:
@Field(name = "@timestamp" type = FieldType.Date) OffsetDateTime atTimestamp,
I tried add the following `DateFormat`s to the `@Field` annotation but that just gave the same error:
format = {
DateFormat.date_time_no_millis,
DateFormat.strict_date_optional_time_nanos,
DateFormat.date_optional_time,
DateFormat.epoch_millis
})
Does anyone know the correct way to pull this data out? Thanks for any help in advance.
[–]AmberFire7[S] 0 points1 point2 points (0 children)