redis-cli icon indicating copy to clipboard operation
redis-cli copied to clipboard

(error) elem.map is not a function When using FT.SEARCH

Open Ankit7991 opened this issue 3 years ago • 3 comments

I am having this issue in the below example. (Error: (error) elem.map is not a function)

127.0.0.1:6379> FT.CREATE products SCHEMA name TEXT price NUMERIC OK

127.0.0.1:6379> FT.ADD products prod1 1.0 FIELDS name "it just regular product 1 with some price tag" price 5000 OK

127.0.0.1:6379> FT.ADD products prod2 1.0 FIELDS name "name of product 2" price 75000 OK

127.0.0.1:6379> FT.SEARCH products "@price:[5000 75000]" (error) elem.map is not a function

127.0.0.1:6379> FT._LIST 1 ) products

I am using docker to run Redis-stack. And using it. (https://redis.io/docs/stack/get-started/install/docker/)

Checked with both docker instances (1. redis/redis-stack-server, 2. redis/redis-stack). Facing Same issue in both

(More details here)

Ankit7991 avatar Oct 03 '22 09:10 Ankit7991

I am having the same issue using the redislabs/redismod:latest docker container. I do not have the issue when using the 'offical' redis redis-cli version 6.0.16 -- so I'm pretty sure this is just isolated to this redis-cli package. I've encountered it both when attempting to do FT.SEARCH and FT.AGGREGATE commands

AndrewSamaha avatar Oct 03 '22 18:10 AndrewSamaha

Same issue

hypo-thesis avatar Oct 10 '22 11:10 hypo-thesis

I will try to update the underlying node-redis library to get full RedisModules support

lujiajing1126 avatar Oct 10 '22 14:10 lujiajing1126