lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From luc...@nitwit.de
Subject Simple date/range question
Date Fri, 02 Apr 2004 15:03:49 GMT
Hi!

I do have some problems with date and the QueryParser range syntax.

code:

java.sql.Timestamp time = row.getTimestamp("timestamp");
if (time != null) doc.add(Field.Keyword("date", new Date(time.getTime())));

query:
date:[20030101 TO 20030202]
date:20030101

The first query does throw a ParserException, the second doesn't return any 
hits.

Hmm...there must be something simple I misunderstood :) BTW what about custom 
date format in QueryParser (...and are the last two digits actually the day 
or month)?

TIA
Timo

---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org


Mime
View raw message