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: "[email protected]" <[email protected]> > To: [email protected] > 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:[email protected]">[email protected] For > additional commands, e-mail: > ymailto="mailto:[email protected]" > href="mailto:[email protected]">[email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
