lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Otis Gospodnetic <otis_gospodne...@yahoo.com>
Subject Re: Index missing documents
Date Mon, 20 Feb 2006 18:39:46 GMT
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

----- Original Message ----
From: Michael van Rooyen <mvanr@bigfoot.com>
To: java-user@lucene.apache.org; Otis Gospodnetic <otis_gospodnetic@yahoo.com>
Sent: Monday, February 20, 2006 3:20:22 AM
Subject: Re: Index missing documents

Thanks Otis.  All the documents were written in a using the same 
IndexWriter, without ever closing it.  Is this what could be responsible for 
the documents not being in the segmens file, or is this bad practice?  Maybe 
I should use a writer for a batch of documents (1000 or so maybe?), and then 
discard it and start with a fresh one.  Would this help?





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