Joseph, If you can, get the latest Lucene and use NumericField to index your dates with appropriate precision and then use NumericRangeQueries when searching. This will be faster than searching for string dates in a given range. Otis ---- Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch Lucene ecosystem search :: http://search-lucene.com/
----- Original Message ---- > From: "i...@josephcrawford.com" <i...@josephcrawford.com> > To: java-user@lucene.apache.org > Sent: Fri, April 16, 2010 9:23:30 AM > Subject: Range Query Assistance > > Hello, I would like to query based on a start and end date. I was > thinking something like this start_date: [20000101 TO <todays > date>] end_date: [<todays date> TO 20900101] Would this work > for me? Our dates are stored in the index as strings so I am not sure > the syntax above would be correct. Any assistance would be > appreciated. Thanks, Joseph > Crawford --------------------------------------------------------------------- To > unsubscribe, e-mail: > href="mailto:java-user-unsubscr...@lucene.apache.org">java-user-unsubscr...@lucene.apache.org For > additional commands, e-mail: > ymailto="mailto:java-user-h...@lucene.apache.org" > href="mailto:java-user-h...@lucene.apache.org">java-user-h...@lucene.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org