The TZ parameter only applies to "date math" rounding. You haven't used any date math.

What are you actually trying to accomplish?

Would [* TO NOW] cover your cases?

Or [* TO NOW/DAY+1DAY]?

-- Jack Krupansky

-----Original Message----- From: Matt Mitchell
Sent: Sunday, July 07, 2013 11:24 PM
To: solr-user@lucene.apache.org
Subject: TZ parameter

Hi,

I'm a little stumped on the TZ param for running a date range query. I've
indexed a single doc with a dateTime field value as "2013-07-08T00:00:00Z".
My query is basically this:

?q=date_dt:[* TO 2013-07-07T23:00:00Z]&TZ=America/New_York

From what I'm seeing here:

 http://wiki.apache.org/solr/CoreQueryParameters#TZ

... the date literal I'm passing-in should? be converted to UTC (w/DST
applied), and end up looking something like: 2013-07-08T03:00:00Z -- am I
on the right track here?

When I run that query, the doc-set is empty. I would expect to see my
document in the result because the date range (UTC via TZ) includes the
documents' date_dt time value (UTC). What am I doing wrong here?

Thanks,
Matt
  • TZ parameter Matt Mitchell
    • Re: TZ parameter Jack Krupansky

Reply via email to