Thanks that works well.

----- Original Message ----
From: Chris Hostetter <[EMAIL PROTECTED]>
To: Solr Dev <solr-dev@lucene.apache.org>; jason rutherglen <[EMAIL PROTECTED]>
Sent: Friday, April 28, 2006 1:58:57 PM
Subject: Re: Adding range filter to Solr


: This is a little bit confusing for me, the documentation at
: http://lucene.apache.org/java/docs/queryparsersyntax.html states they
: query format you described is a Range Query however this document in the
: wiki indicates there is a difference between filters and range queries
: http://wiki.apache.org/jakarta-lucene/DateRangeQueries Also for

As I mentioned in my last reply, the difference between the
SolrQueryParser and the default Lucene QueryParser is that Solr
automatically replaces RangeQueries with ConstantScoreRangeQueries --
which is implimented as a RangeFilter under the covers.

: +(datemodified:[20051228 TO 20060428]) I am receiving:

if you indexed your dates as strings in that format, that would work fine,
but it appears you are using Solr's special DateField, which is good
because it allows a high level of precisiosn, but it's also a very rigid
format.  The sample schema.xml in the example describes the format that
should be used...

    <!-- The format for this date field is of the form 1995-12-31T23:59:59Z, and
         is a more restricted form of the canonical representation of dateTime
         http://www.w3.org/TR/xmlschema-2/#dateTime
         The trailing "Z" designates UTC time and is mandatory.
         Optional fractional seconds are allowed: 1995-12-31T23:59:59.999Z
         All other components are mandatory. -->

...but this info doesnt seem to have ever made it into the javadocs for
the DateField type ... i'll rectify that.



-Hoss




Reply via email to