lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Uwe Schindler" <>
Subject RE: Lucene slow performance
Date Fri, 15 Mar 2013 22:49:12 GMT

with standard configuartion, this cannot happen. What merge policy do you use? This looks
to me like a misconfigured merge policy or using the NoMergePolicy. With 3,000 segments, it
will be slow, the question is, why do you get those?

Another thing could be: Do you always close IndexWriter after adding few documents and when
closing, disable "wait for merge"? In that case, all merges are interrupted and the merge
policy never has a chance to merge at all (because you are opening and closing IndexWriter
all the time with cancelling all merges)?


Uwe Schindler
H.-H.-Meier-Allee 63, D-28213 Bremen

> -----Original Message-----
> From: Scott Smith []
> Sent: Friday, March 15, 2013 11:15 PM
> To:
> Subject: Lucene slow performance
> We have a system that is using lucene and the searches are very slow.  The
> number of documents is fairly small (less than 30,000) and each document is
> typically only 2 to 10 kilo-characters.  Yet, searches are taking 15-16 seconds.
> One of the things I noticed was that the index directory has several thousand
> (3000+) .cfs files.  We do optimize the index once per day.  This is a system
> that probably gets several thousand document deletes and additions per day
> (spread out across the day).
> Any thoughts.  We didn't really notice this until we went to 4.x.
> Scott

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message