Questions tagged [redisjson]

117 questions
1
vote
3 answers

How can update multiple fields in RedisJson

I want to update multiple fields on redis with RedisJSON feature, by using Jedis java client; Refrence Suppose we have a key:value like below in redis: PERSON_1:{name=ali2, phone=1234, address=Tehran, education={uniName=Amirkabir}} then we want to…
1
vote
1 answer

Unable to get all data from redisearch when sharding redis

When I try to get some data from redis using the redisearch command; ft.search index:something * I only get a small portion of what exists across all my redis nodes. In my case I got 5 entries out of 19. I have 6 nodes, using redisjson +…
1
vote
1 answer

How to search array of objects RedisJson using RedisSearch

i have added a json document into my redis db using JSON.set Below given is my Json SET command { "books": [ { "title": "Peter Pan", "price": 8.95 }, { "title": "Moby Dick", "price": 12.99 } ] } JSON.SET myDoc $ '{"books": [{"title":…
Benson OO
  • 477
  • 5
  • 22
1
vote
1 answer

How to connect to RedisJson with JReJSON package in java?

Recently, I started working with RedisJson with node, but I also have to work with Java version of it. I'm trying to create a connection as it is mentioned in this github repo: https://github.com/RedisJSON/JRedisJSON The repo shows connection with…
Gowthamss
  • 191
  • 1
  • 2
  • 13
1
vote
1 answer

How to do pipelining with RedisJSON (node's iorejson)?

I have been working with RedisJSON for a few days and I couldn't find any information on how to use pipelining with node's 'iorejson' package. Can somebody point me in the direction if used?
Gowthamss
  • 191
  • 1
  • 2
  • 13
1
vote
0 answers

Why is RedisJSON slower than normal Redis commands?

I have a few objects which I'm storing in Redis by stringifying them and also storing as direct objects using RedisJSON. But one thing I observed is that reading the objects using JSON.GET is slower(almost 3 times slower) compared to REDIS.GET. But…
Gowthamss
  • 191
  • 1
  • 2
  • 13
1
vote
1 answer

RedisJSON and Python3: JSON.get and ft('index').search(Query('@orig_ip:{192\.168\.210\.27}')) returning no results (matching entry in redis)

I am new to redis and created an index and am attempting to ingest Zeek Logging Data, create an index for multiple fields, and then search fields in that index. For the life of me, I cannot get any values to return when searching for the @orig_ip…
Taylor Paul
  • 364
  • 2
  • 9
1
vote
1 answer

Does Memorystore for Redis support Redis Modules?

Is Google cloud memory store for Redis support RedisJson, and RedisSearch modules? Thanks in advance
1
vote
2 answers

Reactively write to redis in `REDISJSON` format

I am using ReactiveRedisOperations with the driver of lettuce to write to Redis. @Autowired ReactiveRedisOperations redisOperation; public Mono save(Foo foo) { redisOperation.map(operation -> operation …
2shar
  • 101
  • 1
  • 11
1
vote
1 answer

How to enable RedisJson module on Aiven Redis instances

I do not see any option to enable modules in aiven Redis. I tried MODULE LOAD /usr/lib/redis/modules/rejson.so MODULE LIST gives (empty array)
Shashikumar KL
  • 1,007
  • 1
  • 10
  • 25
1
vote
0 answers

Escaping user data for redis, needed?

While using https://github.com/sewenew/redis-plus-plus as library for talking to redis, the following question came up. How would you escape user send data, which should be saved as a value of e.g. a json object (in order to not allow redis command…
user1347198
1
vote
2 answers

Support for pipeline with redis-json in Golang

We recently started to work with redis-json (github.com/nitishm/go-rejson/v4) and redis-search (github.com/RediSearch/redisearch-go/redisearch) clients in Golang. We need to support bulk insert operations of json objects and we don't want to use…
nadavtsa
  • 19
  • 1
1
vote
0 answers

Best way to model ecommerce product catalouge in Redis Json

I have thousands of poducts in my catalouge and i decide to use redis as cache solution and search engine , my question is what is better: every product have about 30 properties like name , price and nested objects like category , attributes ... to…
Akelmj
  • 99
  • 4
1
vote
1 answer

View JSONModel in redis-cli after using python redis-om to save it to the database

Given the following code from redis_om import HashModel, JsonModel import redis r = redis.Redis(host='localhost', port=6379, db=2) kwargs = {'key1': 'value1', 'keyn': 'value2'} jsonModel =…
LeanMan
  • 474
  • 1
  • 4
  • 18
1
vote
0 answers

How to add Data in nested RedisJson

I am using redisJson and I have the following json structure: foobar_1" : { "some" : "value", "number" : 28148, "timestamp" : 1659013007, "inner" : { "someinner" : "value", "innertimestamp" :…
jsx380
  • 43
  • 3