Solr/Lucene 6 can’t read 4.6 index files, only 5.x ones.  So you’ll need to 
upgrade from 4.6 to 5.x using the upgrade tool from the latest 5.x release, 
then from 5.x to 6 using the current upgrade tool.

Alan Woodward
www.flax.co.uk


> On 17 Jun 2017, at 10:08, Moritz Michael <moritz.mu...@gmail.com> wrote:
> 
> Hello,
> 
> I'm trying to upgrade a Solr 4.6 index to Solr 6.
> The upgrade does fail with an error.
> 
> I tried to check the index with org.apache.lucene.index.CheckIndex using
> this command:
> java -cp lucene-core-5.5.4.jar:lucene-backward-codecs-5.5.4.jar
> -ea:org.apache.lucene... org.apache.lucene.index.CheckIndex
> ./[PATH-TO-INDEX]/data/index
> 
> The check fail with this error:
> 
> Opening index @ ./[PATH-TO-INDEX]/data/index
>> 
>> ERROR: could not read any segments file in directory
>> java.lang.IllegalArgumentException: Illegal initial capacity: -16777216
>>        at java.util.HashMap.<init>(HashMap.java:448)
>>        at java.util.HashMap.<init>(HashMap.java:467)
>>        at
>> org.apache.lucene.index.SegmentInfos.readCommit(SegmentInfos.java:393)
>>        at
>> org.apache.lucene.index.CheckIndex.checkIndex(CheckIndex.java:488)
>>        at org.apache.lucene.index.CheckIndex.doCheck(CheckIndex.java:2407)
>>        at org.apache.lucene.index.CheckIndex.doMain(CheckIndex.java:2309)
>>        at org.apache.lucene.index.CheckIndex.main(CheckIndex.java:2235)
>> 
> 
> I tried this with Cygwin and the Windows 10 Ubuntu subsystem with the same
> result.
> 
> Any ideas?
> 
> Best
> Moritz

Reply via email to