Stemming: clarify that stem_dictionary disables Snowball fallback - #493
Open
YonoYing wants to merge 1 commit into
Open
Stemming: clarify that stem_dictionary disables Snowball fallback#493YonoYing wants to merge 1 commit into
YonoYing wants to merge 1 commit into
Conversation
When both stem:true and stem_dictionary are set on a field, only the dictionary is used; Snowball does not run as a fallback for words absent from the dictionary. Replace the ambiguous 'takes precedence' wording in the 30.2 and 29.1 stemming docs. Ref typesense/typesense#2978.
tharropoulos
requested changes
Aug 3, 2026
| 1. Using `"stem": true` alone applies the default Porter stemmer algorithm | ||
| 1. Using `"stem_dictionary": "dictionary_name"` automatically enables stemming functionality (`"stem": true` is implied) | ||
| 1. When explicitly configuring both options on the same field, dictionary stemming takes precedence | ||
| 1. When explicitly configuring both options on the same field, only dictionary stems will be used. In this case snowball's stemming options should be exported and added to the stemming dictionary manually instead. |
Collaborator
There was a problem hiding this comment.
In this case , snowball's
| 1. Using `"stem": true` alone applies the default Porter stemmer algorithm | ||
| 1. Using `"stem_dictionary": "dictionary_name"` automatically enables stemming functionality (`"stem": true` is implied) | ||
| 1. When explicitly configuring both options on the same field, dictionary stemming takes precedence | ||
| 1. When explicitly configuring both options on the same field, only dictionary stems will be used. In this case snowball's stemming options should be exported and added to the stemming dictionary manually instead. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
When both stem:true and stem_dictionary are set on a field, only the dictionary is used; Snowball does not run as a fallback for words absent from the dictionary. Replace the ambiguous 'takes precedence' wording in the 30.2 and 29.1 stemming docs. Ref typesense/typesense#2978.
Change Summary
Changing the note:
"When explicitly configuring both options on the same field, dictionary stemming takes precedence"
to
"When explicitly configuring both options on the same field, only dictionary stems will be used. In this case snowball's stemming options should be exported and added to the stemming dictionary manually instead."
This feels like behavior where the fallback would be the more intuitive behavior, but probably is a low priority feature to add, so for now this seems OK in the docs.
PR Checklist