Add missing class attribute to standard tokenizer in Solr schema.xml #234
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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