lucenenet-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Torsten Rendelmann" <torsten.rendelm...@gmx.net>
Subject Index Optimization generates an error (Index destroyed)
Date Thu, 07 Sep 2006 09:12:40 GMT
Hi,

I get the following exception with both
Lucene.Net-1.9.final-005-09Jul06.src.zip
and Lucene.Net-1.9.1-001-13Jul06.src.zip:

2006-09-07 11:04:48,631 [BanditIndexerThread] ERROR
RssBandit.Common.Logging.Log [] - Failure while optimizing search index.
Exception: System.IO.FileNotFoundException
Message: Could not find file "C:\Documents and
Settings\torsten.rendelmann\Local Settings\Application
Data\RssBandit\index\_32.fnm".
Source: mscorlib
   at System.IO.__Error.WinIOError(Int32 errorCode, String str)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess
access, FileShare share, Int32 bufferSize, Boolean useAsync, String
msgPath, Boolean bFromProxy)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess
access, FileShare share)
   at Lucene.Net.Store.Descriptor..ctor(FSIndexInput enclosingInstance,
FileInfo file, FileAccess mode) in D:\My
Projects\DOT.NET\Sourceforge.RssBandit\CurrentWork\Source\ChildProjects\
Lucene.Net-1.9.src\Lucene.Net\Store\FSDirectory.cs:line 708
   at Lucene.Net.Store.FSIndexInput..ctor(FileInfo path) in D:\My
Projects\DOT.NET\Sourceforge.RssBandit\CurrentWork\Source\ChildProjects\
Lucene.Net-1.9.src\Lucene.Net\Store\FSDirectory.cs:line 726
   at Lucene.Net.Store.FSDirectory.OpenInput(String name) in D:\My
Projects\DOT.NET\Sourceforge.RssBandit\CurrentWork\Source\ChildProjects\
Lucene.Net-1.9.src\Lucene.Net\Store\FSDirectory.cs:line 571
   at Lucene.Net.Index.FieldInfos..ctor(Directory d, String name) in
D:\My
Projects\DOT.NET\Sourceforge.RssBandit\CurrentWork\Source\ChildProjects\
Lucene.Net-1.9.src\Lucene.Net\Index\FieldInfos.cs:line 59
   at Lucene.Net.Index.SegmentReader.Initialize(SegmentInfo si) in D:\My
Projects\DOT.NET\Sourceforge.RssBandit\CurrentWork\Source\ChildProjects\
Lucene.Net-1.9.src\Lucene.Net\Index\SegmentReader.cs:line 158
   at Lucene.Net.Index.SegmentReader.Get(Directory dir, SegmentInfo si,
SegmentInfos sis, Boolean closeDir, Boolean ownDir) in D:\My
Projects\DOT.NET\Sourceforge.RssBandit\CurrentWork\Source\ChildProjects\
Lucene.Net-1.9.src\Lucene.Net\Index\SegmentReader.cs:line 141
   at Lucene.Net.Index.SegmentReader.Get(SegmentInfo si) in D:\My
Projects\DOT.NET\Sourceforge.RssBandit\CurrentWork\Source\ChildProjects\
Lucene.Net-1.9.src\Lucene.Net\Index\SegmentReader.cs:line 121
   at Lucene.Net.Index.IndexWriter.MergeSegments(Int32 minSegment, Int32
end) in D:\My
Projects\DOT.NET\Sourceforge.RssBandit\CurrentWork\Source\ChildProjects\
Lucene.Net-1.9.src\Lucene.Net\Index\IndexWriter.cs:line 862
   at Lucene.Net.Index.IndexWriter.MergeSegments(Int32 minSegment) in
D:\My
Projects\DOT.NET\Sourceforge.RssBandit\CurrentWork\Source\ChildProjects\
Lucene.Net-1.9.src\Lucene.Net\Index\IndexWriter.cs:line 843
   at Lucene.Net.Index.IndexWriter.Optimize() in D:\My
Projects\DOT.NET\Sourceforge.RssBandit\CurrentWork\Source\ChildProjects\
Lucene.Net-1.9.src\Lucene.Net\Index\IndexWriter.cs:line 692
   at NewsComponents.Search.LuceneIndexer.OptimizeIndex() in d:\my
projects\dot.net\sourceforge.rssbandit\currentwork\source\newscomponents
\search\luceneindexer.cs:line 165

Also the index seems to be unusable, because Luke (app) cannot open the
index (same error occurs there). Is there any workaround patch?
 Or do I really have to fallback to the 1.4 code?

TorstenR



Mime
View raw message