redis / redis-om-node

Object mapping, and more, for Redis and Node.js. Written in TypeScript.
MIT License
1.18k stars 80 forks source link

How can i make this queries using this api ? #173

Closed fabiel-leon closed 1 year ago

fabiel-leon commented 1 year ago

how can i remove index also removing documents using this api ?

FT.DROPINDEX myIdx DD

and query the index without specifying a field ?

FT.SEARCH myIdx "hello world" LIMIT 0 10
guyroyse commented 1 year ago

The DD option is not available from Redis OM. So, the short answer is that you can’t.

Regarding your second question. You can bypass the fluent search interface in Redis OM by calling .searchRaw instead of .search. Just pass in your raw query and then use the various .return.* mechanism as normal.