Hi,
I want to query persons for their birthday using Hibernate Search.
The date fild in my person class is like this:
Code:
@Field(index = Index.UN_TOKENIZED)
@DateBridge(resolution = Resolution.DAY)
private Date birthday;
When i query for
Code:
person.birthday:(19420126)
I get all persons with the birthday 19420125. So there is always a difference of one day. I think this is because the dates are stored GMT based in the index.
Is there a solution for this date-difference problem while searching?
Thanks,
Alexander