lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael McCandless <luc...@mikemccandless.com>
Subject Re: Lucene performance issues..
Date Mon, 28 Jul 2008 09:33:28 GMT

Perhaps one thing to try is a partial optimize  
(IndexWriter.optimize(int maxNumSegments)).  It makes optimize faster,  
but searches may run slower than a full optimize.

EG, optimize(5) will reduce index to <= 5 segments.

Mike

Stu Hood wrote:

> Also, keep in mind that optimization is a very disk intense process  
> (and therefore slow). It completely rewrites the index, and should  
> only be done when you are not expecting the index to change for a  
> while.
>
>
> -----Original Message-----
> From: "Daniel Naber" <lucenelist2007@danielnaber.de>
> Sent: Sunday, July 27, 2008 4:59pm
> To: java-user@lucene.apache.org
> Subject: Re: Lucene performance issues..
>
> On Sonntag, 27. Juli 2008, Mazhar Lateef wrote:
>
>> We have also tried upgrading the lucene version to 2.3 in hope to
>> improve performance but the results were quite the opposite. but  
>> from my
>> research on the internet the Lucene version 2.3 is much faster and
>> better so why are we seeing such inconsistency.
>
> Have you checked out these pages?
>
> http://wiki.apache.org/lucene-java/ImproveIndexingSpeed
> http://wiki.apache.org/lucene-java/ImproveSearchingSpeed
>
> Even a large index should be fast, assuming the queries are not
> complicated. Also, with a large index the performance depends on the
> number of matches, i.e. searching for very common terms might be slow.
> Maybe you could post more information about your queries.
>
> Regards
> Daniel
>
> -- 
> http://www.danielnaber.de
>
> ---------------------------------------------------------------------
> 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
>


---------------------------------------------------------------------
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