lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yonik Seeley <>
Subject Re: index merging
Date Thu, 02 Feb 2006 21:25:14 GMT
On 2/2/06, Omar Didi <> wrote:
> Thanks Yonik,
> I can't set the merge factor too high because I will end up with the too many files open

Right.  I meant only for adding a lot of documents.  After a lot of
adds, then you could set the mergefactor back down to a reasonable
level and optimize the index.

> if I change this method to only check for directory.makeLock(IndexWriter.COMMIT_LOCK_NAME).isLocked();
will this tell me that a index is merging?

Yes, the commit lock will be locked when merging is going on, but you
will get some false positives because the lock is used for other
purposes.  That may still fit your need though.


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

View raw message