-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
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
Add support for FT.SEARCH NOCONTENT
#2610
Conversation
@brettburch thanks for contributing! but... if I remember correctly the The |
Ahh, yes, that's true. Only the keys are returned with this option. To your point, for my initial research on this I did:
In this case the documents that are returned have id set but no value.
Sounds good. I will move towards a Thanks for the review! |
@brettburch name it
another edit:
which I don't think we should do when NOCONTENT is used. On top of that, instead of returning
type Reply = {
total: number;
documents: Array<{ id: string, document: ... }>;
}; we should return type Reply = {
total: number;
documents: Array<string>;
}; Sorry for the confusion... |
@brettburch see the edit, sorry about the confusion... |
@leibale I believe I understood your feedback, but let me know if there's anything else to update here. |
Codecov ReportPatch coverage:
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #2610 +/- ##
=======================================
Coverage 95.71% 95.71%
=======================================
Files 456 457 +1
Lines 4523 4530 +7
Branches 506 506
=======================================
+ Hits 4329 4336 +7
Misses 127 127
Partials 67 67
☔ View full report in Codecov by Sentry. |
@leibale I see the node 14 test runs are failing. Is node 14 still supported? Only 18 and 20 are currently active/maintained. If 14 is supported in this package I can investigate the test failures. |
@brettburch I just did not remove them from the tests matrix yet.. I'll take care of it this week. I think this PR is ready.. :) |
FT.SEARCH NOCONTENT
@brettburch |
Great, thanks for the update @leibale ! 🎉 |
Description
This PR implements the TODO item at
node-redis/packages/search/lib/commands/SEARCH.ts
Line 9 in 294cbf8
Similar to #2488
Checklist
npm test
pass with this change (including linting)?