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 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]