lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <e...@ehatchersolutions.com>
Subject Re: How to search document for modified date
Date Mon, 22 Sep 2003 02:27:27 GMT
On Sunday, September 21, 2003, at 05:38  AM, Senthil Kumar K wrote:
> Hi,
>
>   Erik thanks for your reply.
>   How to do using QueryParser expressions.

My personal take is using the date support in Lucene is not all that 
fun or easy because of the contortions necessary to deal with it.  But, 
QueryParser supports date field ranges (but not a term query by date 
field).  So, you can do it this way:

	date:[1/1/04 TO 1/1/04] for inclusive date ranges (only 1/1/04 found)
	date:{1/1/04 TO 1/5/04} for exclusive ranges (dates 1/2, 1/3, and 
1/4/04 are found, but not 1/1 or 1/5/04)



Mime
View raw message