I tried to get records from redis with redisearch and called FT.SEARCH index I got the following type of fetched response:
[ {"id": "messages:1", "value": {stored Object1} }, {"id": "messages:2", "value": {stored Object2} } ]
However, I would like to get (and expected) a response with the following type:
[ {stored Object1}, {stored Object2} ]
As I have understood, real fetched result follows from redis raw response.
However, I would like to know if is it possible to get a response from redis as expected because I have to do mapping on JavaScript side to make expected response
documents.map((o) => o.value).
I am using "redis-redisearch": "^1.0.1" library and simply calling the following code:
await client.ft.search('idx:messages', "@userId: [1 1]");
What is the equivalent to FT.SEARCH idx:messages "@userId: [1 1]" ?