Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
4.10.1
Description
How to reproduce
- Start with standard collection1 config
- Add a field type to schema using the ICU contrib, no need for a field
<fieldType name="text_icu" class="solr.TextField"> <analyzer><tokenizer class="solr.ICUTokenizerFactory"/></analyzer> </fieldType>
- cd example
- mkdir solr/lib
- cp ../contrib/analysis-extras/lucene-libs/lucene-analyzers-icu-4.10.1.jar solr/lib/
- bin/solr -f
- Core is not loaded, and no messages in log after this line
... INFO org.apache.solr.schema.IndexSchema – [collection1] Schema name=example
Note that we did not add the dependency libs from analysis-extras/lib, so we'd expect a ClassNotFoundException, but some way the initialization of schema aborts silently. The ICUTokenizerFactory is instansiated by reflection and I suspect that some exception is swallowed in AbstractPluginLoader#create()