We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When executing the following code:
const results = await nodeRedis.ft.search('test:index', '*', { RETURN: [] })
I get the following error:
/Users/guyroyse/code/playground/ioredis-tests/node_modules/@redis/search/dist/commands/SEARCH.js:18 value: tuples.length === 2 && tuples[0] === '$' ? ^ TypeError: Cannot read properties of undefined (reading 'length') at Object.transformReply (/Users/guyroyse/code/playground/ioredis-tests/node_modules/@redis/search/dist/commands/SEARCH.js:18:27) at transformCommandReply (/Users/guyroyse/code/playground/ioredis-tests/node_modules/@redis/client/dist/lib/commander.js:88:20) at Commander.commandsExecutor (/Users/guyroyse/code/playground/ioredis-tests/node_modules/@redis/client/dist/lib/client/index.js:177:54) at processTicksAndRejections (node:internal/process/task_queues:96:5) at async rediSearchResult (file:///Users/guyroyse/code/playground/ioredis-tests/server.js:66:19) at async file:///Users/guyroyse/code/playground/ioredis-tests/server.js:71:1
It looks like Node Redis doesn't handle an empty RETURN.
Environment:
The text was updated successfully, but these errors were encountered:
SEARCH_NOCONTENT
fix redis#2364 - fix FT.SEARCH RETURN []
d1a388a
fix #2364 - fix FT.SEARCH RETURN [] (#2366)
a1dfa22
* fix #2364 - fix FT.SEARCH RETURN [] * remove console.log
Successfully merging a pull request may close this issue.
When executing the following code:
I get the following error:
It looks like Node Redis doesn't handle an empty RETURN.
Environment:
The text was updated successfully, but these errors were encountered: