lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael van Rooyen" <mv...@bigfoot.com>
Subject Re: Index missing documents
Date Wed, 22 Feb 2006 09:45:34 GMT
I'm using Lucene 1.4.3, and maxBufferedDocs only appears to be in the new 
(unreleased?) version of IndexWriter in CVS.  Looking at the code though, 
setMaxBufferedDocs(n) just translates to minMergeDocs = n.  My index was 
constructed using the default minMergeDocs = 10, so somehow this doesn't 
seem to be the culprit that caused all 2 million+ documents to be missing 
from the crashed index.  It seems more likely that none of the index files 
were "registered" in Lucene's segements file.  Is there perhaps some other 
trigger that causes Lucene to "register" the indexes in the segments file, 
or is there some way of flushing the segments file every so often to ensure 
that it's list is up to date?  Thanks again for your assistance.

Michael.

----- Original Message ----- 
From: "Otis Gospodnetic" <otis_gospodnetic@yahoo.com>
To: <java-user@lucene.apache.org>
Sent: Monday, February 20, 2006 8:39 PM
Subject: Re: Index missing documents


> No, using the same IndexWriter is the way to go.  If you want things to be 
> written to disk more frequently, lower the maxBufferedDocs setting.  Go 
> down to 1, if you want.  You'll use less memory (RAM), Documents will be 
> written to disk without getting buffered in RAM, but the indexing process 
> will be slower.
>
> Otis
>


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