Thanks it works. All this is based on the fact that NOW/DAY means the beginning of the day.
----- Message d'origine ----- De : sebastian.pet...@tib.uni-hannover.de Envoyés : 22.11.11 16:46 À : solr-user@lucene.apache.org Objet : AW: How to select all docs of 'today' ? Hi, "fetch-time:[NOW/DAY TO NOW]" should do it. Best Sebastian -----Ursprüngliche Nachricht----- Von: Danicela nutch [mailto:danicela-nu...@mail.com] Gesendet: Dienstag, 22. November 2011 16:08 An: solr-user@lucene.apache.org Betreff: 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.