lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <>
Subject Re: RangeQuery With Date
Date Mon, 07 Feb 2005 22:10:22 GMT
: Your dates need to be stored in lexicographical order for the RangeQuery
: to work.
: Index them using this date format: YYYYMMDD.
: Also, I'm not sure if the QueryParser can handle range queries with only
: one end point. You may need to create this query programmatically.

and when creating them progromaticaly, you need to use the exact same
format they were indexed in.  Assuming I've corectly guess what your
indexing code looks like, you probably want...

Query query = new RangeQuery(null, new Term("modified", "20041111"), false);


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message