Date queries are described here: http://wiki.apache.org/solr/SolrQuerySyntax
You must first make sure your dates end up in a Date fieldType and are in the proper format. -----Original message----- > From:Dotan Cohen <dotanco...@gmail.com> > Sent: Mon 20-Aug-2012 13:57 > To: solr-user@lucene.apache.org > Subject: Get results only from the last hour > > Hi all, new Solr user. I am retrieving record which look something like this: > <doc> > <str name="created_at"> 1246152402 </str> > <str name="from_user"> someUser </str> > <str name="height"> 1034 </str> > <arr name="id"> > <str> 34859 </str> > </arr> > </doc> > > How can I limit my search to only those records created in the past 60 > minutes? Note that the created_at field is a Unix timestamp. I have > gone over the Common Query Parameters [1] page but could not find the > answer there nor by casual googling. > > Thanks. > > [1] http://wiki.apache.org/solr/CommonQueryParameters > > -- > Dotan Cohen > > http://gibberish.co.il > http://what-is-what.com >