Skip to content

Improve synonym loading - #1122

Merged
lonvia merged 3 commits into
komoot:masterfrom
lonvia:improve-synonym-loading
Sep 4, 2026
Merged

Improve synonym loading#1122
lonvia merged 3 commits into
komoot:masterfrom
lonvia:improve-synonym-loading

Conversation

@lonvia

@lonvia lonvia commented Sep 4, 2026

Copy link
Copy Markdown
Collaborator

This changes how synonyms are loaded when serving: instead of rewriting the entire analyser configuration only the filters with the synonyms are updated.

Leaving the remaining analyser configuration untouched means that we can introduce breaking changes into the configuration. Such changes will now only be effective for new installations while existing ones can keep the analysers that are compatible with their database.

The change is not completely backwards compatible because the new installation method expects the synonym filters to be always present in the search analysers while the old method would only install them, when needed. Enabling synonyms on databases imported before this change will only work, if synonyms had already been enabled. The good news is that you can easily do that by starting an older version of Photon with synonyms. There is an error message which explains the steps.

Closes #1070.

Comment thread src/main/java/de/komoot/photon/Server.java
@lonvia
lonvia force-pushed the improve-synonym-loading branch from 64f6530 to add5ce7 Compare September 4, 2026 10:02
@lonvia

lonvia commented Sep 4, 2026

Copy link
Copy Markdown
Collaborator Author

bugbot run

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit add5ce7. Configure here.

@lonvia
lonvia merged commit a5dc433 into komoot:master Sep 4, 2026
5 checks passed
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.

Update synonyms without rewriting index settings

1 participant