I had been running a Solr 4.3.0 index, which I upgraded to 4.4.0 (but
hadn't changed LuceneVersion, so it was still using the LUCENE_43 codec).

I then had to back-out and return to a 4.3 system, and got an error when it
tried to read the index.

Now, it was only a dev system, so not a problem, and normally I would use
restore a backup anyway, but shouldn't this work?  If I haven't changed the
codec, then Solr 4.4 should be using the same code as 4.3, so the data
should be compatible, no?

I noticed its in DocValues, but I thought they were supposed to be
compatible using the default format which we do?

Caused by: org.apache.lucene.index.IndexFormatTooNewException: Format
version is not supported (resource:
NIOFSIndexInput(path="/bb/news/search/solr/main/data/index/_3bs_Lucene42_0.dvm")):
1 (needs to be between 0 and 0)
        at
org.apache.lucene.codecs.CodecUtil.checkHeaderNoMagic(CodecUtil.java:148)
        at
org.apache.lucene.codecs.CodecUtil.checkHeader(CodecUtil.java:130)
        at
org.apache.lucene.codecs.lucene42.Lucene42DocValuesProducer.<init>(Lucene42DocValuesProducer.java:84)
        at
org.apache.lucene.codecs.lucene42.Lucene42DocValuesFormat.fieldsProducer(Lucene42DocValuesFormat.java:133)
        at
org.apache.lucene.codecs.perfield.PerFieldDocValuesFormat$FieldsReader.<init>(PerFieldDocValuesFormat.java:213)
        at
org.apache.lucene.codecs.perfield.PerFieldDocValuesFormat.fieldsProducer(PerFieldDocValuesFormat.java:282)
        at
org.apache.lucene.index.SegmentCoreReaders.<init>(SegmentCoreReaders.java:134)
        at
org.apache.lucene.index.SegmentReader.<init>(SegmentReader.java:56)
        at
org.apache.lucene.index.StandardDirectoryReader$1.doBody(StandardDirectoryReader.java:62)
        at
org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:783)
        at
org.apache.lucene.index.StandardDirectoryReader.open(StandardDirectoryReader.java:52)
        at
org.apache.lucene.index.DirectoryReader.open(DirectoryReader.java:88)
        at
org.apache.solr.core.StandardIndexReaderFactory.newReader(StandardIndexReaderFactory.java:34)
        at
org.apache.solr.search.SolrIndexSearcher.getReader(SolrIndexSearcher.java:169)
        ... 18 more


Cheers, Daniel

Reply via email to