Hmm so lucene.net 2.1.0 is not compatible with lucene 2.1.0 java ? On 9/25/07, DIGY < [EMAIL PROTECTED]> wrote: > > Hi Karol, > > Which version of Lucene do you use? Since there are changes in index > structure(in version 2.1), you can not read the index created with v2.1.0 > with previous versions of Lucene. > > > DIGY > > -----Original Message----- > From: Karol Rybak [mailto: [EMAIL PROTECTED] > Sent: Tuesday, September 25, 2007 12:01 PM > To: [email protected] > Subject: Problem with opening foreign indexes > > Hello, i have a problem opening indexes that are created using nutch > 0.9(lucene > 2.1.0) some indexes are opened fine, however some cannot be opened. I've > tracked down the problem to the function GetCurrentSegmentGeneration in > SegmentInfos.cs > > this line is causing the problem > long v = System.Convert.ToInt64(file.Substring(prefixLen), 16 ); > > when i compared it to the java version of lucene it looks like that > > generation = > Long.parseLong(segmentFileName.substring > (1+IndexFileNames.SEGMENTS.length()) > , > Character.MAX_RADIX); > > so it looks like the number base is wrong since > SupportClass.Character.MAX_RADIX in lucene.net returns 36 i tried to use > that value but then no indexes could be opened > > there are some segments filenames that are causing problems > > segments_jz > segments_3s > segments_1h > > > those are ok > > segments_a > segments_3d > segments_167 > > > Please let me know if there is anything i can do with that issue. I could > use with some hack, i only need to read those indexes, not write or > optimize.... > > -- > Karol Rybak > Sekcja aplikacji / Applications section > Wyższa Szkoła Informatyki i Zarządzania / University of Internet > Technology > and Management > +48(17)8661277 > >
-- Karol Rybak Sekcja aplikacji / Applications section Wyższa Szkoła Informatyki i Zarządzania / University of Internet Technology and Management +48(17)8661277
