You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by swaragsn <sw...@citysearch.com> on 2008/12/23 02:04:04 UTC

Date Range Search

Hi All,

I am trying to do range queries for dates in SOLR. 
My schema looks like this.

<field name="startdate" type="date" indexed="true" stored="true"
multiValued="true" omitNorms="false"/>


Now, when I do a query 


http://localhost:8983/solr/select?q=startdate%3A[2008-12-21T00%3A00%3A00Z+TO+2008-12-25T00%3A00%3A00Z]


I get all docs in which the dates are in between 2008-12-21 to 2008-12-25.


But, when I want to search for all docs with
startdate:[2008-12-21T00%3A00%3A00Z+TO+*]

I get docs which have a startdate less than 2008-12-21 (which I am not
supposed to) and docs with startdate >2008-12-21 (which is correct).

Am I doing something wrong in the query?

I want to search for all docs that have a range of 2008-12-21 and after
wards.


Any help would be appreciated .

Thanks,
Swarag.
-- 
View this message in context: http://www.nabble.com/Date-Range-Search-tp21137921p21137921.html
Sent from the Solr - User mailing list archive at Nabble.com.