From ac46c3bc9803a47ddd284c7530efb00cc8b07b0e Mon Sep 17 00:00:00 2001 From: Pascal zhang Date: Sat, 8 Nov 2025 17:01:25 +0100 Subject: [PATCH] Refactor FT.CREATE command field definitions Updated the FT.CREATE command to use AS for field names. --- content/develop/get-started/vector-database.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/content/develop/get-started/vector-database.md b/content/develop/get-started/vector-database.md index 47842ac455..f5a96b122e 100644 --- a/content/develop/get-started/vector-database.md +++ b/content/develop/get-started/vector-database.md @@ -170,9 +170,9 @@ You must create an index to query document metadata or to perform vector searche FT.CREATE idx:bikes_vss ON JSON PREFIX 1 bikes: SCORE 1.0 SCHEMA - $.model TEXT WEIGHT 1.0 NOSTEM - $.brand TEXT WEIGHT 1.0 NOSTEM - $.price NUMERIC + $.model AS model TEXT WEIGHT 1.0 NOSTEM + $.brand AS brand TEXT WEIGHT 1.0 NOSTEM + $.price AS price NUMERIC $.type TAG SEPARATOR "," $.description AS description TEXT WEIGHT 1.0 $.description_embeddings AS vector VECTOR FLAT 6 TYPE FLOAT32 DIM 768 DISTANCE_METRIC COSINE