Solr error when initializing DSpace's search core

1,419 views
Skip to first unread message

Thiago Cavalcanti

unread,
Jun 15, 2022, 4:33:26 PM6/15/22
to DSpace Technical Support
Hi there.

I recently installed a fresh DSpace instance after a while, but I'm encountering an error with the search core in Solr. When initializing it, Solr throws this error:

search: org.apache.solr.common.SolrException:org.apache.solr.common.SolrException: Could not load conf for core search: Can't load schema /var/solr/data/new_core/search/conf/schema.xml: Plugin init failure for [schema.xml] fieldType "text": Plugin init failure for [schema.xml] analyzer/filter: Error loading class 'org.apache.lucene.analysis.icu.ICUFoldingFilterFactory'

Any clues on how to solve this?

Thanks in advance,
Thiago

Bill Tantzen

unread,
Jun 15, 2022, 4:55:50 PM6/15/22
to Thiago Cavalcanti, DSpace Technical Support
Thiago,
What version of DSpace?  If you are on v7.x and have recently upgraded to solr v9.0.0 there are a few tweaks you need to make in the search core's solrconfig.xml (I can fill you in if this is the case).
~~Bill

--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/54046817-1435-4ecf-8597-d27897ff71e0n%40googlegroups.com.


--
Human wheels spin round and round
While the clock keeps the pace... -- John Mellencamp
________________________________________________________________
Bill Tantzen    University of Minnesota Libraries
612-626-9949 (U of M)    612-325-1777 (cell)

Thiago Cavalcanti

unread,
Jun 15, 2022, 5:58:57 PM6/15/22
to DSpace Technical Support
Hello, Bill.

Yes, that's the case. I'm running DSpace 7.2.1 and Solr 9.0.0.

Thanks in advance,
Thiago

Tim Donohue

unread,
Jun 15, 2022, 6:17:58 PM6/15/22
to Thiago Cavalcanti, DSpace Technical Support, Bill Tantzen
Hi Bill,

Could you make sure to provide those "tweaks" for Solr 9 back to the codebase (if they are necessary in the codebase) and/or Installation Documentation?


Currently, I see the Install Documentation does specify to use Solr 8. However, if we know there are specific changes needed to allow us to easily support Solr 9, then I'd support us making those changes. So, any hints you can provide (or a PR with recommended changes) would be welcome!

Thanks,

Tim

From: 'Bill Tantzen' via DSpace Technical Support <dspac...@googlegroups.com>
Sent: Wednesday, June 15, 2022 3:55 PM
To: Thiago Cavalcanti <tcava...@hcte.ufrj.br>; DSpace Technical Support <dspac...@googlegroups.com>
Subject: Re: [dspace-tech] Solr error when initializing DSpace's search core
 

Bill Tantzen

unread,
Jun 15, 2022, 6:51:54 PM6/15/22
to Thiago Cavalcanti, DSpace Technical Support
near the top of search/conf/solrconfig.xml, try this (original config commented out):

    <!-- Include contributed libraries that we use in DSpace. -->
<!--<lib dir='${solr.install.dir}/contrib/analysis-extras/lib/'
         regex='icu4j-.*\.jar'/>
    <lib dir='${solr.install.dir}/contrib/analysis-extras/lucene-libs/'
         regex='lucene-analyzers-icu-.*\.jar'/>
    <lib dir="${solr.install.dir}/contrib/extraction/lib" />
    <lib dir="${solr.install.dir}/dist/"
         regex="solr-cell-\d.*\.jar" />-->
    <!-- the contributed libraries have a different location in solr 9.0 -->
    <lib dir='${solr.install.dir}/modules/analysis-extras/lib/'
         regex='icu4j-.*\.jar'/>
    <lib dir='${solr.install.dir}/modules/analysis-extras/lib/'
         regex='lucene-analysis-icu-.*\.jar'/>
    <lib dir='${solr.install.dir}/modules/extraction/lib' />

see if that helps!
~~Bill

Thiago Cavalcanti

unread,
Jun 15, 2022, 7:05:08 PM6/15/22
to DSpace Technical Support
Hello, Bill.

Thanks! It works.

In order to get it back to the codebase (like Tim suggests), I guess that in the short run it would be better to support both 8 and 9, doing a check of which Solr version DSpace is dealing with.

Best regards,
Thiago
Reply all
Reply to author
Forward
Message has been deleted
Message has been deleted
0 new messages