lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Uwe Schindler" <...@thetaphi.de>
Subject RE: Range Queries Performance Hit
Date Thu, 25 Mar 2010 11:31:45 GMT
You should use NumericRangeQuery and NumericField (since 2.9).

-----
Uwe Schindler
H.-H.-Meier-Allee 63, D-28213 Bremen
http://www.thetaphi.de
eMail: uwe@thetaphi.de


> -----Original Message-----
> From: suman.holani@zapak.co.in [mailto:suman.holani@zapak.co.in]
> Sent: Thursday, March 25, 2010 12:08 PM
> To: java-user@lucene.apache.org
> Subject: Range Queries Performance Hit
> 
> Hello,
> 
> 
> Range queries are lowering down the performance of search.
> I am using date in my clucene application .
> 
> lucene doc has these kind of fields:
> 
> startdt="1242758400" enddt="1241980500"
> 
> 
> 
> now when i am searching for
> searchingdate = new RangeQuery(lastyear time in seconds,current time in
> seconds, true);
> 
> searchingdate1 = new RangeQuery(current time in seconds,nextyear time
> in
> seconds, true);
> 
> Query :i want all doc , created after last year and expired before next
> year.
> 
> but the query is taking 15ms to run.
> if i remove the query the execution time is reduced to half.
> 
> 1. any other thing that i can use for range queries
> 2. converting the time to minutes is also not helping me.
> 
> Help me with the solution.
> 
> 
> Thanks,
> Suman
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org



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


Mime
View raw message