From 8d92e8b9a6a757acf571feefbcb3e485daf2e338 Mon Sep 17 00:00:00 2001 From: Nikolay Karadzhov Date: Wed, 22 Jul 2026 12:46:24 +0300 Subject: [PATCH] feat(search): add missing RediSearch stemmer languages 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) --- packages/search/lib/commands/CREATE.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/search/lib/commands/CREATE.ts b/packages/search/lib/commands/CREATE.ts index 00dee3ef975..e1b23d3e9c8 100644 --- a/packages/search/lib/commands/CREATE.ts +++ b/packages/search/lib/commands/CREATE.ts @@ -352,6 +352,7 @@ export function parseSchema(parser: CommandParser, schema: RediSearchSchema) { export const REDISEARCH_LANGUAGE = { ARABIC: 'Arabic', + ARMENIAN: 'Armenian', BASQUE: 'Basque', CATALANA: 'Catalan', DANISH: 'Danish', @@ -361,20 +362,25 @@ export const REDISEARCH_LANGUAGE = { FRENCH: 'French', GERMAN: 'German', GREEK: 'Greek', + HINDI: 'Hindi', HUNGARIAN: 'Hungarian', INDONESAIN: 'Indonesian', IRISH: 'Irish', ITALIAN: 'Italian', LITHUANIAN: 'Lithuanian', + MALAY: 'Malay', NEPALI: 'Nepali', NORWEIGAN: 'Norwegian', PORTUGUESE: 'Portuguese', ROMANIAN: 'Romanian', RUSSIAN: 'Russian', + SERBIAN: 'Serbian', SPANISH: 'Spanish', SWEDISH: 'Swedish', + TAGALOG: 'Tagalog', TAMIL: 'Tamil', TURKISH: 'Turkish', + YIDDISH: 'Yiddish', CHINESE: 'Chinese' } as const;