Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

121
Vistas
Handling the response from Redis and Redisearch

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]" ?

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda