You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Otis Gospodnetic <ot...@yahoo.com> on 2005/09/13 21:09:40 UTC

Re: too many files open

Hello, (replying to java-user list, as that's the place to ask)

Your mergeFactor is waaaaaay to high.  Leave it at the default (10).
Also look at IndexWriter javadocs, where mergeFactor and friends are
described.  If you have Lucene in Action, mergeFactor is described in
detail in chapter 2 (see
http://www.lucenebook.com/search?query=mergeFactor ) and there is code
that shows you how you can change various indexing parameters to tune
indexing performance.

Otis


--- haipeng du <ha...@gmail.com> wrote:

> First time, My index maxMergeDocument is 1,000, and mergeFactor is
> 10,000. I 
> got "too many files open" error when I index documents with 1,000,000
> 
> documents. Then, My index maxMergeDocument is 10,000, and mergeFactor
> is 
> 10,000. I can index that succefully. But when I search that, I got
> "too many 
> files open" error again.
> How could I select these parameters for index and searching?
> 
> -- 
> Haipeng Du
> Software Engineer
> Comphealth, 
> Salt Lake City
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org