You need to use brackets around range queries.  See 
http://wiki.apache.org/solr/SolrQuerySyntax

        Erik

On Apr 16, 2010, at 7:08 AM, Jan-Olav Eide wrote:

I have the follwing field in my schema :

<field name="indextime" type="date" indexed="true" stored="true" default="NOW" multiValued="false"/>

Querying for another field, I verify that the value is being set as expected.

http://localhost:8080/apache-solr-1.4.0/select/?q=url:www.vg.no

<response>
...
<date name="indextime">2010-04-16T10:47:25.282Z</date
</response>

however, querying on a date-range that definitely includes this document, I get no documents returned:

http://localhost:8080/apache-solr-1.4.0/select/?q=indextime:NOW-1DAY%20TO%20NOW%20+1DAY


What is wrong with my query here ?

--
jo

Reply via email to