Skip to content

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

@Ankit7991

Description

@Ankit7991

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions