ioredis icon indicating copy to clipboard operation
ioredis copied to clipboard

Abnormal behavior with Redisearch - The clauses HIGHLIGHT, and SUMMARIZE do not do their job.

Open Lucabenj opened this issue 3 years ago • 1 comments

It happens with the following query that I have already tested to be correct and working as expected with redis-cli and concurrent node-redis:

FT.SEARCH myindex @d:"some text" RETURN 3 t d da SUMMARIZE FIELDS 1 d HIGHLIGHT FIELDS 1 d

Replacing the triplet of fields (t, d, da) with this one: (t, d, to), then the result returned by the server is as expected, that is with the summary and the highlighting of the d field.

Could it be that there is a bug in ioredis for which fields with names d, and da somehow give a problem?

Lucabenj avatar May 04 '22 17:05 Lucabenj

Hey @Lucabenj 👋 ,

Sorry for the late reply! ioredis doesn't interpret any arguments and just passes them directly to the server. Can you show the code which has the issue?

luin avatar May 21 '22 02:05 luin