I am not sure if you have resolved your error.
There will be some major changes between Solr 4.6.0 and 5.4.0, and I think your error is due to the changes between the 2 different versions. It means your schema.xml is outdated and won't work for SOlr 5.4.0.
I suggest you doing the following:
When you install Solr 5.4.0 and create a new core, Solr will create a managed-schema file in the conf directory of the core directory. I suggest you compare managed-schema file to your old schema.xml
file. For example, look for fieldType name="text_general"
in your old schema.xml
, and see the difference between the contents under fieldType name="text_general"
and the contents under fieldType name="text_general"
of managed-schema of Solr 5.4.0. One potential way to fix the error is by removing enablePositionIncrements="true"
as Neeraj suggested above.
After the fix for the contents under enablePositionIncrements="true"
, if Solr gives another error regarding your old schema.xml
, look for the location of your error in schema.xml
and compare it to managed-schema as done above.
Don't forget to remove or move managed-schema file out of the conf
directory since the managed-schema probably won't be something you want to use. You would want to use your old schema.xml
, right?
Hope this helps.