:       One great problem we are having to integrate solr with plone is that
: plone can have dates and times in diferent timezones, and each user can query
: the data in its own timezone. So we would be really interested in being able
: to put date/time data on solr with a timezone and specifying the timezone of a
: query so we get perfect results. I saw somewhere that part of this suport is
: going to be in 1.3, is that right? And how is it going to work?

I'm not sure what "part" of this you are thinking of will be in 1.3 ... I 
don't know of any new Timezone related stuff in the trunk.

Solr specificly tries to be as agnostic about timezones as possible ... 
when interacting with Solr all dates should be in UTC.  If your 
application is getting/giving dates fromt/to users who have configured 
timezones prefrences then the parsing/formatting when interacting with the 
user should be aware of their prefered timezone -- but you should allways 
be in UTC when dealing with Solr.

The one place where it would *definitely* make sense to make Solr aware of 
timezones would be in dealing with DateMath -- when you round by "DAY" 
Solr currently does that in UTC, even though that's probably not what 
matters to you -- but ever other aspect of date processing Solr should 
work fine provided you transform your dates before putting them in the 
index.

There have been a some other discussions about adding options DateField to 
make it more flexible in parsing Dates in other formats (which might 
included timezone support) but: 1) i don't know of anyone who has actually 
started on this; 2) it would only affect the input to Solr ... values 
would still be indexed in UTC so they could be compared with any other 
date (regardless of it's format/timezone) and search clients would still 
need to know the current users prefered TZ to make sure to query/display 
those dates appropriately.



-Hoss

Reply via email to