Hi
I am using Lucene 2.0.0
I get following exception while indexing...
is there anyone has faced this exception?
thanks




java.io.IOException: Cannot rename E:\index-lab\segments.new to
E:\index-lab\segments
       at org.apache.lucene.store.FSDirectory.renameFile(FSDirectory.java
:294)
       at org.apache.lucene.index.SegmentInfos.write(SegmentInfos.java:95)
       at org.apache.lucene.index.IndexWriter$4.doBody(IndexWriter.java
:726)
       at org.apache.lucene.store.Lock$With.run(Lock.java:99)
       at org.apache.lucene.index.IndexWriter.mergeSegments(
IndexWriter.java:724)
       at org.apache.lucene.index.IndexWriter.mergeSegments(
IndexWriter.java:686)
       at org.apache.lucene.index.IndexWriter.maybeMergeSegments(
IndexWriter.java:674)
       at org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java
:479)
       at org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java
:462)
       at com.payvand.lucene.SingleIndexer.addDocument(SingleIndexer.java
:70)
       at com.payvand.lucene.MainIndexing.indexinPatientLabView(
MainIndexing.java:183)
       at com.payvand.lucene.MainIndexing.main(MainIndexing.java:56)
Caused by: java.io.FileNotFoundException: E:\index-lab\segments (Access is
denied)
       at java.io.FileOutputStream.open(Native Method)
       at java.io.FileOutputStream.<init>(Unknown Source)
       at java.io.FileOutputStream.<init>(Unknown Source)
       at org.apache.lucene.store.FSDirectory.renameFile(FSDirectory.java
:278)
       ... 11 more


--
Regards,
Mohammad
--------------------------
see my blog: http://brainable.blogspot.com/

Reply via email to