lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <hossman_luc...@fucit.org>
Subject Re: mixing solr date and magic date words
Date Fri, 07 Mar 2008 19:49:24 GMT
: I would like to send this query to Solr:
: 
: date:[2008-02-02T16:45:58Z-90DAY TO 2008-02-02T16:45:58Z-3DAY]

the trunk has code to support date math expressions on arbitrary dates (in 
solr 1.2 date math only worked relative to "NOW") but there is currently a 
bug in which milliseconds (which are suppose to be optional) are mandatory 
when dealing with date math ... it will be fixed by 1.3, but if you want 
to use the trunk now you would have to write that as...

   date:[2008-02-02T16:45:58.000Z-90DAY TO 2008-02-02T16:45:58.000Z-3DAY]



-Hoss


Mime
View raw message