lucenenet-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Torsten Rendelmann" <torsten.rendelm...@gmx.net>
Subject RE: Index Optimization generates an error (Index destroyed)
Date Fri, 08 Sep 2006 15:57:12 GMT
I found a solution: I used multiple IndexWriters concurrently
to index the different languages (via the language analyzers). 
The idea was to safe the multiple open/close index sequences,
But it seems there is no way around other than to use only one
indexwriter at a time. 

Or is it even possible somehow?

> -----Original Message-----
> From: Torsten Rendelmann [mailto:torsten.rendelmann@gmx.net] 
> Sent: Thursday, September 07, 2006 11:13 AM
> To: 'Mailingliste Lucene.NET (Apache)'
> Subject: Index Optimization generates an error (Index destroyed)
> 
> 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\Chil
> dProjects\
> 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\Chil
> dProjects\
> 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\Chil
> dProjects\
> 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\Chil
> dProjects\
> 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\Chil
> dProjects\
> 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\Chil
> dProjects\
> 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\Chil
> dProjects\
> 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\Chil
> dProjects\
> 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\Chil
> dProjects\
> 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\Chil
> dProjects\
> 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\news
> components
> \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