Skip to content

feat(search): add missing RediSearch stemmer languages#3350

Open
nkaradzhov wants to merge 1 commit into
redis:masterfrom
nkaradzhov:feat/search-add-missing-languages
Open

feat(search): add missing RediSearch stemmer languages#3350
nkaradzhov wants to merge 1 commit into
redis:masterfrom
nkaradzhov:feat/search-add-missing-languages

Conversation

@nkaradzhov

@nkaradzhov nkaradzhov commented Jul 22, 2026

Copy link
Copy Markdown
Collaborator

This pull request adds the RediSearch stemmer languages that were missing from the REDISEARCH_LANGUAGE enum 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_FIELD options of FT.CREATE and FT.SEARCH in a type-safe way:

  • Armenian
  • Hindi
  • Malay
  • Serbian
  • Tagalog
  • Yiddish

Malay and Tagalog ship with the 8.10 query engine. Armenian, Hindi, Serbian and Yiddish were already listed as supported languages in the RediSearch stemming documentation.

Notes

  • SEARCH.ts and every other command consume the shared RediSearchLanguage type, so they pick up the new values automatically.
  • No behavior change for existing values; this is a purely additive change to the enum.
  • Existing key spellings (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_LANGUAGE in @redis/search with six Snowball stemmer locales that RediSearch already supports but the client did not expose: Armenian, Hindi, Malay, Serbian, Tagalog, and Yiddish.

Because RediSearchLanguage is inferred from that enum, LANGUAGE / LANGUAGE_FIELD on FT.CREATE and 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.

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>
@nkaradzhov
nkaradzhov requested a review from PavelPashov July 22, 2026 10:02
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.

1 participant