elcomendante
elcomendante

Reputation: 1161

does rejson in redis support complex get query?

I am going through rejson docs jsonget and cannot find anything related to complex query as for example:

JSON.GET key1 where key1.subkey1 == "test1 || key3.subkey6.subsubkey2 > 2"

Does anybody know if redis supports such a logic with json output? If not, what are the alternatives ?

Upvotes: 1

Views: 1801

Answers (1)

Itamar Haber
Itamar Haber

Reputation: 50022

No - ReJSON does not support complex query logic. What you could do is couple it (in the application) with RediSearch (https://redisearch.io) to index and search your documents.

Disclaimer: ReJSON author here and involved in RediSearch's development to a degree :)

Upvotes: 3

Related Questions