title: Searching on date ranges with Lucene in Java?
body: <p>Is it possible to search on date ranges using Lucene in Java? How do I build Lucene search queries based on date fields and dates ranges? For example:</p>
  
  <ul>
  <li>between specified dates</li>
  <li>prior to a specified date</li>
  <li>after a specified date</li>
  <li>within the last 24 hours</li>
  <li>within the past week</li>
  <li>within the past month.</li>
  </ul>
  
  <p>[Edit] i'm using Lucene 2.4.1 and my system is really legacy and really poorly tested so i would like if possible not to have to upgrade</p>