Yoann Rodière (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *updated* an issue
Hibernate Search (
https://hibernate.atlassian.net/browse/HSEARCH?atlOrigin=eyJpIjoiMTNhMmYx...
) / Improvement (
https://hibernate.atlassian.net/browse/HSEARCH-2378?atlOrigin=eyJpIjoiMTN...
) HSEARCH-2378 (
https://hibernate.atlassian.net/browse/HSEARCH-2378?atlOrigin=eyJpIjoiMTN...
) Indexed resolution (truncation) for date/time types (
https://hibernate.atlassian.net/browse/HSEARCH-2378?atlOrigin=eyJpIjoiMTN...
)
Change By: Yoann Rodière (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
)
{{@DateBridge}} resolution used to be supported for {{java.util.Date}} and
{{java.util.Calendar}}, but not {{java.time}} types.
It’s no longer supported at all in Hibernate Search 6, because truncating a
{{java.util.Date}} requires us to pick a timezone, and there’s no way to be sure that’s
the timezone the user expected.
However, we could restore support for resolution in very specific cases:
* For date/time types where the timezone is not necessary in order to truncate a value
(e.g. {{LocalDateTime}}, {{LocalDate}})
* For date/time types where the timezone is included in the value to truncate (e.g.
{{ZonedDateTime}}, {{OffsetDateTime}})
* Optionally, for date/time types where an external timezone must be provided, in which
case it could be part of the mapping ({{@TemporalField(resolution = ..., timeZone =
"UTC+2")}} / {{@TemporalField(resolution = ..., timeZoneProvider =
@BeanReference(name = "myBean" ) }})
(
https://hibernate.atlassian.net/browse/HSEARCH-2378#add-comment?atlOrigin...
) Add Comment (
https://hibernate.atlassian.net/browse/HSEARCH-2378#add-comment?atlOrigin...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100207- sha1:ee9e30a )