I am trying to add polish language in solr but it giving the error Plugin init failure for [schema.xml] analyzer/filter: Error loading class 'solr.StempelPolishStemFilterFactory'
Following code i have added:
<fieldType name="text_pl" class="solr.TextField" positionIncrementGap="100">
<analyzer>
<tokenizer class="solr.StandardTokenizerFactory"/>
<filter class="solr.LowerCaseFilterFactory"/>
<filter class="solr.StopFilterFactory" ignoreCase="true" words="lang/stopwords_pl.txt" />
<filter class="solr.StempelPolishStemFilterFactory"/>
</analyzer>
</fieldType>
reference: https://solr.apache.org/guide/8_0/language-analysis.html#polish
To use this filter, you must add additional .jars to Solr’s classpath.
You can go to
solr-8.1.0/contrib/analysis-extras/README.txtfor instructions on which jars you need to add.In your case:
So in the solrconfig.xml you should add: