In ft.search SORTBY, SUMMARIZE and HIGHLIGHT all take
string arguments and do not need @ or $ as a prefix.
In fact, if you put @ or $ there, redis returns error like this:
[SimpleError: Property `@age` not loaded nor in schema]
fixes#3017
as per the ft.search docs ( https://redis.io/docs/latest/commands/ft.search ):
If a relevant key expires while a query is running,
an attempt to load the key's value will return a null array.
However, the key is still counted in the total number of results.
So, instead of crashing when seeing a null as a value, we
return empty object.
fixes#2772
see https://github.com/redis/node-redis/pull/2814
* (docs) bloom: add jsdocs for all commands
* (docs) json: add jsdocs
* (docs) search: add jsdocs for all commands
* (docs) jsdocs for std commands
* (docs) jsdoc comments to time series commands
* Parser support with all commands
* remove "dist" from all imports for consistency
* address most of my review comments
* small tweak to multi type mapping handling
* tweak multi commands / fix addScript cases
* nits
* addressed all in person review comments
* revert addCommand/addScript changes to multi-commands
addCommand needs to be there for sendCommand like ability within a multi.
If its there, it might as well be used by createCommand() et al, to avoid repeating code.
addScript is there (even though only used once), but now made private to keep the logic for bookkeeping near each other.
RESP3 Support
- Some commands responses in RESP3 aren't stable yet and therefore return an "untyped" ReplyUnion.
Sentinel
TypeMapping
Correctly types Multi commands
Note: some API changes to be further documented in v4-to-v5.md
* Add support for NOCONTENT in FT.SEARCH
* Move support for NOCONTENT search option from client.search to client.searchNoContent
* Add test for SEARCH_NOCONTENT#transformReply
* Fix typo
* Enable test
* Update test field type
---------
Co-authored-by: Leibale <me@leibale.com>
* #2486: add timeout as optional param in FT.Search
* return timeout from aggregate
* add test case for TIMEOUT in aggregate
* add TIMEOUT option in search file
* add test cases for TIMEOUT option in search file
* uodate search/aggregates to add timeout when it is not undefuned
* update search to add timeout when it is not undefuned
* update test case for AGGREGATE