From 142084c60f925cad210e3c84e821090b00a04cc8 Mon Sep 17 00:00:00 2001 From: Lee Smet Date: Mon, 25 Aug 2025 11:03:38 +0200 Subject: [PATCH] Fix ft.create options parser Signed-off-by: Lee Smet --- src/cmd.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cmd.rs b/src/cmd.rs index 32fdd09..f3df94b 100644 --- a/src/cmd.rs +++ b/src/cmd.rs @@ -672,7 +672,7 @@ impl Cmd { i += 2; // Parse field options until we hit another field name or end - while i < cmd.len() && !["TEXT", "NUMERIC", "TAG", "GEO"].contains(&cmd[i].to_uppercase().as_str()) { + while i < cmd.len() && ["WEIGHT", "SORTABLE", "NOINDEX", "SEPARATOR", "CASESENSITIVE"].contains(&cmd[i].to_uppercase().as_str()) { options.push(cmd[i].to_uppercase()); i += 1; @@ -685,7 +685,7 @@ impl Cmd { schema.push((field_name, field_type, options)); } - + Cmd::FtCreate { index_name, schema,