I am trying to upgrade a current solr 4.10.4 setup to solr 5.5.5. Does anyone knows how do I upgrade the index?
Asked
Active
Viewed 289 times
1 Answers
0
You can run the IndexUpgrader tool. More details here:
https://lucene.apache.org/core/5_5_0/core/org/apache/lucene/index/IndexUpgrader.html
And in the migration doc:

jspcal
- 50,847
- 7
- 72
- 76
-
where is this lucene-core.jar located? – Moses Liao GZ Jan 16 '19 at 08:19
-
core/lucene-core.jar-x.y.z.jar – jspcal Jan 16 '19 at 08:27
-
thanks! is it suppose to be run when solr is stopped or something? – Moses Liao GZ Jan 16 '19 at 08:50
-
Yes the index shouldn't be modified during the upgrade. – jspcal Jan 16 '19 at 08:52
-
I got this error `Exception in thread "main" java.lang.IllegalArgumentException: Could not load codec 'Lucene410'. Did you forget to add lucene-backward-codecs.jar?` – Moses Liao GZ Jan 16 '19 at 09:54
-
Try adding lucene-backward-codecs.jar to your classpath. The jar should be included in the directory tree. – jspcal Jan 17 '19 at 07:24
-
Strange, I still faced the same problem. Is it because I use lucene-backward-codecs-5.5.5.jar? Should I be using 4.10 codecs? – Moses Liao GZ Jan 17 '19 at 13:09
-
you take a look at https://stackoverflow.com/questions/54237232/unable-to-run-solr-5-index-upgrader – Moses Liao GZ Jan 17 '19 at 13:43