lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Lu <chris...@gmail.com>
Subject Re: when indexing, java.io.FileNotFoundException
Date Thu, 03 Feb 2005 17:57:30 GMT
Thank you for your reply.

I am already using compound file format, and the minMergeDocs is already 
increased to 50.
As my understanding and observation,  files are compounded at the end of 
indexing. The error happens when indexing, so compound file format 
should not matter.


Chris Lu

Will Allen wrote:

>Increase the minMergeDocs and use the compact file format when creating your index.
>
>http://jakarta.apache.org/lucene/docs/api/org/apache/lucene/index/IndexWriter.html
>
>http://jakarta.apache.org/lucene/docs/api/org/apache/lucene/index/IndexWriter.html#setUseCompoundFile(boolean)
>
>-----Original Message-----
>From: Chris Lu [mailto:chris.lu@gmail.com]
>Sent: Thursday, February 03, 2005 12:46 PM
>To: Lucene Users List
>Subject: when indexing, java.io.FileNotFoundException
>
>
>Hi,
>I am getting this exception now and then when I am indexing content.
>It doesn't always happen. But when it happens, I have to delete the
>index and start over again.
>This is a serious problem for us.
>
>In this email, Doug was say it has something to do with win32's lack of
>atomic renaming.
>http://java2.5341.com/msg/1348.html
>
>But how can I prevent this?
>
>Chris Lu
>
>
>java.io.FileNotFoundException: C:\data\indexes\customer\_temp\0\_1e.fnm
>(The system cannot find the file specified)
>   at java.io.RandomAccessFile.open(Native Method)
>   at java.io.RandomAccessFile.<init>(RandomAccessFile.java:204)
>   at 
>org.apache.lucene.store.FSInputStream$Descriptor.<init>(FSDirectory.java:376)
>   at org.apache.lucene.store.FSInputStream.<init>(FSDirectory.java:405)
>   at org.apache.lucene.store.FSDirectory.openFile(FSDirectory.java:268)
>   at org.apache.lucene.index.FieldInfos.<init>(FieldInfos.java:53)
>   at 
>org.apache.lucene.index.SegmentReader.initialize(SegmentReader.java:109)
>   at org.apache.lucene.index.SegmentReader.<init>(SegmentReader.java:94)
>   at 
>org.apache.lucene.index.IndexWriter.mergeSegments(IndexWriter.java:480)
>   at 
>org.apache.lucene.index.IndexWriter.maybeMergeSegments(IndexWriter.java:458)
>   at org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:310)
>   at org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:294)
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: lucene-user-help@jakarta.apache.org
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: lucene-user-help@jakarta.apache.org
>
>
>  
>


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


Mime
View raw message