Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

brentclark
Copy link

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

…core [dovecot] Caused by: [schema.xml] analyzer/tokenizer: missing mandatory attribute 'class'
@cmouse
Copy link
Contributor

cmouse commented Feb 4, 2025

Thanks. We'll take a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants