lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "host unknown" <linux_new...@hotmail.com>
Subject disregard last message
Date Thu, 05 Dec 2002 23:31:51 GMT
Hi again,

It never fails that when you walk away from a problem, the solution hits you 
like a ton of bricks.....

had to use a RangeQuery:

query.add(new RangeQuery( new Term ("date_published", from_date), new 
Term("date_published", to_date), true ), true, false );

NOT a TermQuery:

query.add(new TermQuery( new Term ("date_published", "[" + from_date + " - " 
+ to_date + "]")), true, false);

Thanks for your patience ......
Dominic







_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online 
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


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


Mime
View raw message