lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vo Nhu Tuan <>
Subject Too many open files error
Date Wed, 23 Mar 2011 09:48:56 GMT

Can someone help me with this problem please? I got these when running my program: /Users/vonhutuan/Documents/workspace/InformationExtractor/index_wordlist/_i82.frq
(Too many open files)
	at Method)
	at org.apache.lucene.index.FormatPostingsDocsWriter.<init>(
	at org.apache.lucene.index.FormatPostingsTermsWriter.<init>(
	at org.apache.lucene.index.FormatPostingsFieldsWriter.<init>(
	at org.apache.lucene.index.FreqProxTermsWriter.flush(
	at org.apache.lucene.index.TermsHash.flush(
	at org.apache.lucene.index.DocInverter.flush(
	at org.apache.lucene.index.DocFieldProcessor.flush(
	at org.apache.lucene.index.DocumentsWriter.flush(
	at org.apache.lucene.index.IndexWriter.doFlushInternal(
	at org.apache.lucene.index.IndexWriter.doFlush(
	at org.apache.lucene.index.IndexWriter.flush(
	at org.apache.lucene.index.IndexWriter.optimize(
	at org.apache.lucene.index.IndexWriter.optimize(
	at org.apache.lucene.index.IndexWriter.optimize(
	at patterngenerator.TextMatcher.indexText(
	at patterngenerator.TextMatcher.<init>(
	at patterngenerator.PatternGenerator.<init>(
	at Test2.main(

What it was doing is:
where writer was an instance of IndexWriter.

As of my program, it indexes many set of documents independently, but the index files are
store under the same directory. Which means that the index files get overwritten when I index
a new set of documents.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message