lucene-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bin01 <imvivacio...@gmail.com>
Subject Get IndexOutOfBoundsException when opening a Lucene 2.4V index with Lucene 3.6 binaries
Date Thu, 14 Mar 2013 21:46:06 GMT
Hello,

We have an old index which was originally built with Lucene V2.4. We upgrade
Lucene to version 3.6.1 recently and when trying to access this index with
new Binaries, we are seeing the following exception:

Exception in thread "Main Thread" java.lang.IndexOutOfBoundsException:
Index: 13912, Size: 27
	at java.util.ArrayList.RangeCheck(ArrayList.java:547)
	at java.util.ArrayList.get(ArrayList.java:322)
	at org.apache.lucene.index.FieldInfos.fieldInfo(FieldInfos.java:255)
	at org.apache.lucene.index.FieldInfos.fieldName(FieldInfos.java:244)
	at org.apache.lucene.index.TermBuffer.read(TermBuffer.java:86)
	at org.apache.lucene.index.SegmentTermEnum.next(SegmentTermEnum.java:133)
	at
org.apache.lucene.index.TermInfosReaderIndex.<init>(TermInfosReaderIndex.java:76)
	at org.apache.lucene.index.TermInfosReader.<init>(TermInfosReader.java:116)
	at
org.apache.lucene.index.SegmentCoreReaders.<init>(SegmentCoreReaders.java:83)
	at org.apache.lucene.index.SegmentReader.get(SegmentReader.java:116)
	at org.apache.lucene.index.SegmentReader.get(SegmentReader.java:94)
	at org.apache.lucene.index.DirectoryReader.<init>(DirectoryReader.java:109)
	at
org.apache.lucene.index.ReadOnlyDirectoryReader.<init>(ReadOnlyDirectoryReader.java:28)
	at
org.apache.lucene.index.DirectoryReader$1.doBody(DirectoryReader.java:82)
	at
org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:709)
	at org.apache.lucene.index.DirectoryReader.open(DirectoryReader.java:76)
	at org.apache.lucene.index.IndexReader.open(IndexReader.java:256)

It appears that the index might have gotten corrupted. Is there a work
around to this problem or a way to repair the index.

Thanks,
Snehal



--
View this message in context: http://lucene.472066.n3.nabble.com/Get-IndexOutOfBoundsException-when-opening-a-Lucene-2-4V-index-with-Lucene-3-6-binaries-tp4047512.html
Sent from the Lucene - General mailing list archive at Nabble.com.

Mime
View raw message