feat(search): add missing RediSearch stemmer languages#3350
Open
nkaradzhov wants to merge 1 commit into
Open
Conversation
Add Armenian, Hindi, Malay, Serbian, Tagalog and Yiddish to REDISEARCH_LANGUAGE. These are supported by the RediSearch Snowball stemmer but were missing from the client enum, so they could not be passed to the LANGUAGE / LANGUAGE_FIELD options of FT.CREATE and FT.SEARCH in a type-safe way. Malay and Tagalog ship with the 8.10 query engine; Armenian, Hindi, Serbian and Yiddish were already listed as supported languages in the RediSearch documentation. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
This pull request adds the RediSearch stemmer languages that were missing from the
REDISEARCH_LANGUAGEenum in@redis/search.The following languages are supported by the RediSearch Snowball stemmer but were not exposed by the client, so they could not be passed to the
LANGUAGE/LANGUAGE_FIELDoptions ofFT.CREATEandFT.SEARCHin a type-safe way:ArmenianHindiMalaySerbianTagalogYiddishMalayandTagalogship with the 8.10 query engine.Armenian,Hindi,SerbianandYiddishwere already listed as supported languages in the RediSearch stemming documentation.Notes
SEARCH.tsand every other command consume the sharedRediSearchLanguagetype, so they pick up the new values automatically.CATALANA,INDONESAIN,NORWEIGAN) are left untouched to avoid a breaking change to the public enum keys.🤖 Generated with Claude Code
Note
Low Risk
Additive enum entries with no runtime or API behavior changes beyond expanded TypeScript autocomplete.
Overview
Extends
REDISEARCH_LANGUAGEin@redis/searchwith six Snowball stemmer locales that RediSearch already supports but the client did not expose: Armenian, Hindi, Malay, Serbian, Tagalog, and Yiddish.Because
RediSearchLanguageis inferred from that enum,LANGUAGE/LANGUAGE_FIELDonFT.CREATEand related search commands can now reference these values with full type safety. Existing enum keys and string values are unchanged; this is additive typing only.Reviewed by Cursor Bugbot for commit 8d92e8b. Bugbot is set up for automated code reviews on this repo. Configure here.