Comments (6)
@danitseitlin any thoughts on what this should look like?
Something like:
[
[
{
hash: 'movie:1001',
title: 'Star Wars',
}
],
1
]
Could be destructured to:
const [ results, count ] = await client.search('idx:movie', '*')
from redis-modules-sdk-ts.
@dane-stevens Not exactly.
The problem is we're getting a complex array with items of 1-4 levels and it makes it hard + annoying to maintain.
We have 2 approaches to think about:
- Attempt to manipulate the output of the complex functions and build up a JS object. (the better solution)
- Return an actual object that holds a lot of information and has getter setter functions.
What do you think is a better solution? Got anymore ideas?
This should be thought carefully.
P. S. The person performing this task should have a good grip on the Redisearch module (or at least dive strongly into the docs)
from redis-modules-sdk-ts.
@dane-stevens If this is urgent for you then let me know and I'll reprioritize.
from redis-modules-sdk-ts.
@danitseitlin It's not a huge priority right now. I can just parse the response myself for now. I only need one or two levels at most.
from redis-modules-sdk-ts.
@dane-stevens I'm currently working on adding the missing Redis AI module class after that I can handle this. If you want to give this task a try feel free to assign to yourself. Any contribution is welcome! If not - I'll syc here once I'll get to it
from redis-modules-sdk-ts.
@dane-stevens All done :)
from redis-modules-sdk-ts.
Related Issues (20)
- getCommandExecutor() is deleted after redisson 3.15.1 HOT 3
- Add support for RediSearch 2.2 `ON JSON` HOT 2
- Add support for RedisJSON 2.0 HOT 1
- RediSearch incorrectly names `Separator` as `Seperator` HOT 7
- redisearch.search returns different shapes when result count is above/below limit parameter HOT 5
- Searching on tag with special characters - Escape issue? HOT 3
- Error: ReJSON class (JSON.SET): ReplyError: ERR unknown command 'JSON.SET' HOT 2
- Allow consumers to opt out of request parsing for RediSearch HOT 1
- (FT.SEARCH): TypeError: Cannot read property 'send_command' of undefined
- What's the best way to prevent retrying HOT 2
- Add dialect support for RediSearch queries
- FT.AGGREGATE miss filter parameter HOT 2
- [QUESTION] Does redis-modules-sdk rely on node-redis ? HOT 3
- Check if FT.SEARCH handles null response
- Enable Pipelining throws error HOT 2
- Fix Redis gears && Redis Tdigest tests and clients
- Redis modules is exported as "Redis" instead of the original name
- remove `@types/ioredis` from package.json HOT 6
- Fix ReBloomTDigest tests
- Redisearch unwanted debug logs HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from redis-modules-sdk-ts.