RediSearch result
Author: akelmjCreated Aug 31, 2022Updated Sep 8, 2026
LabelsfeatureQuestionEvaluatingstale
Hi,
I use this code to search products:
let products = await redisClient.ft.search(index_name , '@brand:(lg)' , {RETURN: ['$.product_type' , 'priority'] , LIMIT:{from: 0 , size:5}});
The result is:

How te get the result without id AND value , something like this result:

i use this code to get the result:
products.documents = products.documents.map(x=> { return { "priority" : x.value['priority'] , "product_type" : x.value['$.product_type'] }});
can i get the same result using redisSearch without using extra jsavascript code like i use above?
thanks.
Source: redis/node-redis