Hi,
thanks for your feedback.
Quote:
Some dates are loaded by Hibernate as java.sql.Timestamp instances. When these timestamp instances are processed by the out-of-the-box DateBridge bad things happen.
Can you elaborate on this? What is the problem with
java.sql.Timestamp?Maybe you could create an issue in
http://opensource.atlassian.com/project ... se/HSEARCH including a testcase?
Quote:
Anyone else experiencing this problem? The fix is to build a replacement for the out-of-the-box date bridge implementation that does not make use of the Lucene DateTools class. I have an implementation that solves this issue, gets rid of heavy synchronization that may limit performance of optimized (i.e. multi-threaded - mass indexing), and fixes another major bug (if you use Resolution.DAY then DateTools will drop the day instead of dropping the hour).
I guess you are talking about
https://issues.apache.org/jira/browse/LUCENE-1070. Your problem seems to be caused by using a non UTC time zone. If you want to stick with that, the right approach is to use a custom bridge implementation. Personally I think it makes sense to store all dates in the UTC timezone and to make sure that dates entered by users or used for searches get the same treatment. What if the timezone of your server changes?
--Hardy