You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Sambhav Kothari <sa...@metabrainz.org> on 2018/04/13 08:36:06 UTC

Need help with migration to Solr 7 (Error instantiating class)

Hello everyone!

I am migrating my Solr config to solr 7.3 from 6.6.2.

I was having trouble with one of the filters, specifically
'solr.ICUFoldingFilterFactory'

I have the required libs from analysis-extras in my solr config.

<lib dir="${solr.install.dir}/contrib/analysis-extras/lucene-libs"
regex=".*\.jar" />
<lib dir="${solr.install.dir}/contrib/analysis-extras/lib" regex=".*\.jar"
/>

but I am still getting

Error instantiating class:
'org.apache.lucene.analysis.icu.ICUFoldingFilterFactory'

I can use the other ICU filters without any problem, and as soon as I
comment my the line having the FoldingFilter everything runs without errors.

I am using solr.ICUTransformFilterFactory apart from the above and that
works fine.

Any idea what is wrong?

Thanks,
Sam

Re: Need help with migration to Solr 7 (Error instantiating class)

Posted by Erick Erickson <er...@gmail.com>.
Try starting Solr with the -v option. That'll dump exactly what's
loaded from where. and provide a lot more details. Also what's in the
Solr logs? Perhaps that'll be more informative.

Best
Erick

On Fri, Apr 13, 2018 at 1:36 AM, Sambhav Kothari <sa...@metabrainz.org> wrote:
> Hello everyone!
>
> I am migrating my Solr config to solr 7.3 from 6.6.2.
>
> I was having trouble with one of the filters, specifically
> 'solr.ICUFoldingFilterFactory'
>
> I have the required libs from analysis-extras in my solr config.
>
> <lib dir="${solr.install.dir}/contrib/analysis-extras/lucene-libs"
> regex=".*\.jar" />
> <lib dir="${solr.install.dir}/contrib/analysis-extras/lib" regex=".*\.jar"
> />
>
> but I am still getting
>
> Error instantiating class:
> 'org.apache.lucene.analysis.icu.ICUFoldingFilterFactory'
>
> I can use the other ICU filters without any problem, and as soon as I
> comment my the line having the FoldingFilter everything runs without errors.
>
> I am using solr.ICUTransformFilterFactory apart from the above and that
> works fine.
>
> Any idea what is wrong?
>
> Thanks,
> Sam