I deleted all data/files in solr and recreated the cores. Seem to be ok 
now. Thanks!

On Thursday, July 13, 2023 at 3:49:40 PM UTC-4 DSpace Technical Support 
wrote:

> Hi,
>
> This is an odd error because there was no change to the "edit" field in 
> Solr between DSpace 7.5 and 7.6.   However, I can verify that the "edit" 
> field was first **added** in DSpace 7.5: 
> https://github.com/DSpace/DSpace/blob/main/dspace/solr/search/conf/schema.xml#L268
>
> It almost sounds like, to me, either you customized this schema.xml (which 
> is unlikely), or maybe you didn't have the latest "schema.xml" installed 
> when you upgraded to DSpace 7.6?
> Maybe try step 9 again in the Backend upgrade docs?  
> https://wiki.lyrasis.org/display/DSDOC7x/Upgrading+DSpace#UpgradingDSpace-UpgradingtheBackendSteps
>
> That should walk you through ensuring you have the correct schema.xml 
> installed in Solr, then you should restart Solr & finally re-run "./dspace 
> index-discovery -b".
>
> If that doesn't help, then I'd recommend checking your DSpace log files 
> and/or Solr logs to see if other errors are occurring.  This error on its 
> own seems quite odd, but maybe it is being caused by a different error.
>
> Tim
>
> On Friday, July 7, 2023 at 6:21:40 AM UTC-5 amtuan...@gmail.com wrote:
>
>> I just upgraded to 7.6 from 7.5 and got a new error when running 
>> index-discovery.
>> See error below. Any help is appreciated. Thanks!
>>
>> $ /dspace/bin/dspace index-discovery -b
>>
>> The script has started
>>
>> (Re)building index from scratch.
>>
>> org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: 
>> Error from server at http://10.0.0.243:8983/solr/search: Exception 
>> writing document id Item-000117c0-b46c-4823-9916-6afc3bd1e534 to the index; 
>> possible analysis error: cannot change field "edit" from index 
>> options=DOCS_AND_FREQS_AND_POSITIONS to inconsistent index options=DOCS
>>
>>         at 
>> org.apache.solr.client.solrj.impl.HttpSolrClient.executeMethod(HttpSolrClient.java:681)
>>
>>         at 
>> org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:266)
>>
>>         at 
>> org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:248)
>>
>>         at 
>> org.apache.solr.client.solrj.SolrRequest.process(SolrRequest.java:214)
>>
>>         at 
>> org.apache.solr.client.solrj.SolrClient.add(SolrClient.java:177)
>>
>>         at 
>> org.apache.solr.client.solrj.SolrClient.add(SolrClient.java:138)
>>
>>         at 
>> org.apache.solr.client.solrj.SolrClient.add(SolrClient.java:156)
>>
>>         at 
>> org.dspace.discovery.indexobject.IndexFactoryImpl.writeDocument(IndexFactoryImpl.java:147)
>>
>>         at 
>> org.dspace.discovery.indexobject.ItemIndexFactoryImpl.writeDocument(ItemIndexFactoryImpl.java:642)
>>
>>         at 
>> org.dspace.discovery.indexobject.ItemIndexFactoryImpl.writeDocument(ItemIndexFactoryImpl.java:81)
>>
>>         at 
>> org.dspace.discovery.SolrServiceImpl.update(SolrServiceImpl.java:170)
>>
>>         at 
>> org.dspace.discovery.SolrServiceImpl.indexContent(SolrServiceImpl.java:159)
>>
>>         at 
>> org.dspace.discovery.SolrServiceImpl.updateIndex(SolrServiceImpl.java:349)
>>
>>         at 
>> org.dspace.discovery.SolrServiceImpl.updateIndex(SolrServiceImpl.java:336)
>>
>>         at 
>> org.dspace.discovery.SolrServiceImpl.createIndex(SolrServiceImpl.java:304)
>>
>>         at 
>> org.dspace.discovery.IndexClient.internalRun(IndexClient.java:117)
>>
>>         at org.dspace.scripts.DSpaceRunnable.run(DSpaceRunnable.java:104)
>>
>>         at 
>> org.dspace.app.launcher.ScriptLauncher.executeScript(ScriptLauncher.java:149)
>>
>>         at 
>> org.dspace.app.launcher.ScriptLauncher.handleScript(ScriptLauncher.java:131)
>>
>>         at 
>> org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:98)
>>
>

-- 
All messages to this mailing list should adhere to the Code of Conduct: 
https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
--- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/af3545e0-1d3d-47a8-89a7-fc52316ab11cn%40googlegroups.com.

Reply via email to