Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Ankit7991 opened this issue Oct 3, 2022 · 3 comments · May be fixed by #51
Open

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

Ankit7991 opened this issue Oct 3, 2022 · 3 comments · May be fixed by #51

Comments

@Ankit7991
Copy link

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)

@AndrewSamaha
Copy link

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

@hypo-thesis
Copy link

Same issue

@lujiajing1126
Copy link
Owner

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

wallaceiam added a commit to wallaceiam/redis-cli that referenced this issue Nov 1, 2023
- also includes splitargs to remove vulnerabilities
- updates tests
@wallaceiam wallaceiam linked a pull request Nov 1, 2023 that will close this issue
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants