Search code examples
jsonredisredisjson

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 ?


Solution

  • 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 :)