Skip to content

Remove 'name' attribute from tokenizer elements - #312

Open
beertje44 wants to merge 1 commit into
dovecot:mainfrom
beertje44:patch-1
Open

Remove 'name' attribute from tokenizer elements#312
beertje44 wants to merge 1 commit into
dovecot:mainfrom
beertje44:patch-1

Conversation

@beertje44

@beertje44 beertje44 commented Aug 31, 2026

Copy link
Copy Markdown

both name and class cause a startup error in current solr, it should be only one of those, so only class is retained.

Pull Request

If this pull request fixes, discloses, demonstrates or discusses a suspected security vulnerability,
DO NOT submit it publicly. Follow SECURITY.md and report it privately.

  • I confirm that this PR does not fix, disclose, demonstrate, or discuss a suspected security vulnerability.
  • I have read CONTRIBUTING.md and SECURITY.md
  • I have compiled and tested this code'

AI policy

Dovecot allows AI assisted or generated code, but we would like to know if it is such.
Do not include 'Co-Authored-By' header in the commit.

  • This PR includes AI-generated code or text.

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Refactor or code cleanup

Description

Both solr 9.8+ and current 10 versions refuse to load core schema when tokenizer has both name and class properties. Only keeping class here seemed like the right thing to do. After this my dovecot core loads and works withwith solr-10.0.0 on my system.

Additional Notes

both name and class cause a startup error in current solr, it should be only one of those, so only class is retained.
@bcrestaniceov

Copy link
Copy Markdown

Confirmed this works on Solr 9.10, but keeping name might be better according to the docs (it's not legacy) - what do you think?

ref. https://solr.apache.org/guide/solr/9_10/indexing-guide/tokenizers.html

@beertje44

Copy link
Copy Markdown
Author

Previous edit added class, so that is why I kept that one:

b10ca9c

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