lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Solr Wiki] Update of "CoreQueryParameters" by HossMan
Date Wed, 06 Mar 2013 18:59:16 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.

The "CoreQueryParameters" page has been changed by HossMan:
http://wiki.apache.org/solr/CoreQueryParameters?action=diff&rev1=11&rev2=12

Comment:
NOW and TZ

  
  The default value is "standard" (xml).
  
+ == NOW ==
+ 
+ The {{{NOW}}} parameter is used internally by Solr to set a fixed time for evaluating Date
based expresions -- notably for usages of !DateField and "Date Math" parsing (ie: date range
queries and range faceting).  It's primary usage is in intra-node requests during distributed
search, to ensure a uniform value is used across all nodes regardless of any slight inconsistencies/delays
between when requests are recieved for each shard; but it may also be explicitly specified
by clients to override the default behavior.
+ 
+ The value of the {{{TZ}}} param is expressed in milliseconds since epoch.
+ 
+ == TZ ==
+ 
+ The {{{TZ}}} parameter can be specified to override the default !TimeZone (UTC) used for
the purposes of adding and rounding in date math.  The local rules for the specified !TimeZone
(including the start/end of DST if any) determine when each arbitrary day starts -- which
affects not only rounding/adding of DAYs, but also cascades to rounding of HOUR, MIN, MONTH,
YEAR as well.
+ 
+ For example "{{{2013-03-10T12:34:56Z/YEAR}}}" using the default TZ would be {{{2013-01-01T00:00:00Z}}}
but with {{{TZ=America/Los_Angeles}}}, the result is {{{2013-01-01T08:00:00Z}}}.  Likewise,
{{{2013-03-10T08:00:00Z+1DAY}}} evaluates to {{{2013-03-11T08:00:00Z}}} by default, but with
{{{TZ=America/Los_Angeles}}} the local DST rules result in {{{2013-03-11T07:00:00Z}}}
+ 
+ The value of the {{{TZ}}} param can be any zone ID supported by [[http://docs.oracle.com/javase/6/docs/api/java/util/TimeZone.html|The
java TimeZone class]].
+ 
  = Parameters That Produce Debugging Info =
  
  == echoHandler ==

Mime
View raw message