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 Danicela nutch <Da...@mail.com> on 2011/11/22 16:07:56 UTC

How to select all docs of 'today' ?

Hi,

 I have a fetch-time (date) field to know when the documents were fetched.

 I want to make a query to get all documents fetched today.

 I tried : 

 fetch-time:NOW/DAY
but it returns always 0.

 fetch-time:[NOW/DAY TO NOW/DAY]
 (it returns 0)

 fetch-time:[NOW/DAY-1DAY TO NOW/DAY]
but it returns documents fetched yesterday.

 fetch-time:[NOW/DAY-1HOUR TO NOW/DAY]
but it's incorrect too.

 Do you have any idea ?

 Thanks in advance.