Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HSEARCH-2501 Elasticsearch calendar resolution handling is not consistent with Lucene's #1282

Closed
wants to merge 3 commits into from

Conversation

yrodiere
Copy link
Member

@yrodiere yrodiere commented Jan 5, 2017

https://hibernate.atlassian.net/browse/HSEARCH-2501

Please note that with Lucene, we always truncate date/calendars with the GMT timezone, regardless of the timezone that has been set on the calendar.

If we are to solve this issue, I think we should solve it in a way that is consistent between ES and Lucene. For instance we could add a configuration option to set the timezone to use when truncating dates ('GMT', '+01:00', 'default' for the JVM's default, ...) and another for calendars (same options + another to instruct to use the calendar's timezone).

See also the thread I started on the hibernate-dev mailing list: http://lists.jboss.org/pipermail/hibernate-dev/2017-January/015712.html

For now, I made the Elasticsearch integration behave the same as Lucene.

…t with the same value

We used to keep the hour, minutes, etc. from the current date/time.
…stment with Elasticsearch on Lucene's behavior

We truncate the date with the GMT timezone, even if the calendar has a
different timezone.
…dex-time rounding

The Elasticsearch integration fails testCalendarBridge when
using non-GMT timezones.

This is fixed with HSEARCH-2501.
@Sanne
Copy link
Member

Sanne commented Jan 12, 2017

Great, it even worked in the late evening 👍
Merged

@Sanne Sanne closed this Jan 12, 2017
@yrodiere yrodiere deleted the HSEARCH-2501 branch January 12, 2017 09:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants