core icon indicating copy to clipboard operation
core copied to clipboard

Add missing class attribute to standard tokenizer in Solr schema.xml

Open brentclark opened this issue 11 months ago • 1 comments

Good day

Description: This pull/merge request addresses an issue with the Solr schema configuration for the dovecot core. The schema.xml file was missing the mandatory class attribute for the standard tokenizer, causing Solr to fail when loading the configuration.

Problem When attempting to load the dovecot core, the following error occurred: dovecot: org.apache.solr.common.SolrException:org.apache.solr.common.SolrException: Could not load conf for core dovecot: Can't load schema /var/solr/data/dovecot/conf/schema.xml: Plugin init failure for [schema.xml] fieldType "text": Plugin init failure for [schema.xml] analyzer/tokenizer "standard": [schema.xml] analyzer/tokenizer: missing mandatory attribute 'class'

The error indicates that the standard tokenizer in the text field type is missing the required class attribute, which specifies the tokenizer's implementation class.

Solution: The issue has been resolved by adding the class="solr.StandardTokenizerFactory" attribute to the element in the schema.xml file. This ensures that Solr can correctly instantiate the standard tokenizer during core initialization.

Kind Regards Brent Clark

brentclark avatar Feb 04 '25 06:02 brentclark

Thanks. We'll take a look.

cmouse avatar Feb 04 '25 06:02 cmouse