Re: how to query range of Date by given date string?

2007-02-26 Thread Erick Erickson
Well, you need to do two things. First, make sure your dates are indexed so they can be sorted lexically, which the format you're showing is. You might want to look at the DateTools class for handy methods of transforming dates into Lucene-friendly format. Then use RangeQuery or RangeFilter class

RE: how to query range of Date by given date string?

2007-02-26 Thread WATHELET Thomas
Parse your date with this classe DateTools.stringToDate to search and DateTools.dateToString() to store into index. -Original Message- From: 李寻欢晕菜了 [mailto:[EMAIL PROTECTED] Sent: 26 February 2007 11:17 To: java-user@lucene.apache.org Subject: how to query range of Date by given date st