lujiajing1126 / redis-cli

A Redis-Cli Tool written in typescript for terminal

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Ankit7991 opened this issue · 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)

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

Same issue

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