Problem running reindex in dspace 7

47 views
Skip to first unread message

cpgr...@gmail.com

unread,
May 17, 2024, 11:22:08 AM5/17/24
to DSpace Technical Support
We are running the 7.6.1 back end under Ubuntu. When I try to re-index our content I get the following error:

org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: Error from server at http://localhost:8983/solr/search: Exception writing document id Item-000299be-2c3d-4e69-948a-38248660ff26 to the index; possible analysis error: cannot change field "edit" from index options=DOCS_AND_FREQS_AND_POSITIONS to inconsistent index options=DOCS

Does anyone know how I fix this (and where I would fix it)?

Any help  here would be greatly appreciated.

DSpace Technical Support

unread,
May 17, 2024, 1:06:40 PM5/17/24
to DSpace Technical Support
Hi,

Someone else previously ran into this issue.  It seemed to be that the Solr "search" core may have not had an updated schema.xml.  See the thread here for possible solutions: 
https://groups.google.com/g/dspace-tech/c/Kg664zHlU1U

Keep in mind, it's safe to completely destroy/recreate this "search" core (if needed...though it may just be you need to update the schema.xml). The "search" core is repopulated anytime you run "./dspace index-discovery -b"

Hopefully that helps,

Tim

cpgr...@gmail.com

unread,
May 17, 2024, 3:13:11 PM5/17/24
to DSpace Technical Support
Hmmm... Interesting. So I looked at the schema.xml for the search configset in my 7.6.1 installed version and the source package and found no difference between them or my installed schema.xml in solr (which I copied from [dspace]/dspace/solr/search). I still have the 7.4 source package around and found the schema.xml differed from one in the 7.6.1 package. So I copied the 7.4 version into my solr configset and the command is running now without error.

I suspect there is a problem with the schema.xml for search distributed in the 7.6.1 package.
Reply all
Reply to author
Forward
0 new messages