: So, are you saying that you are expected to store UTC dates in your
: index, but if you happen to know that a user is in a different timezone,
: you can round those dates for them according to their timezone instead
: of UTC?
: 
: That's how I'd interpret it, but useful to confirm.

Date formatting and Date Math are two completley different things.

0) All dates, in the index, are stored in UTC.

1) All dates, if expressed as Strings, must be formatted in UTC when 
provided to TrieDateField either to index or for the purposes of query 
parsing.  (if you use SolrJ to send a Date object there is 
no String representation and UTC is irelevant, likewise things like 
ParseDateFieldUpdateProcessorFactory can parse other formats and be 
configured with other timezones)

2) By default, all date math expressions are evaluated relative to the UTC 
TimeZone, but the TZ parameter can be specified to override this 
behaviour, by forcing all date based addition and rounding to be relative 
to the specified time zone.

https://cwiki.apache.org/confluence/display/solr/Working+with+Dates



-Hoss
http://www.lucidworks.com/

Reply via email to