Questions tagged [redisjson]

117 questions
0
votes
0 answers

how to used to spring-lettucemod create index on json(java)

enter image description hereenter image description here I create a redissearch index with spring-lettucemod,but the Index is Hash type ,not the JSON type,I can't find the Options to change the Hash on CreateOptions or RedisModulesCommands,Please…
0
votes
1 answer

Redis streams Data missing

I am using Redis with the Jedis client , I have two classes , a Producer one and a Consumer one .The data sent by the producer class over streams is not being recieved well by the Consumer class . It seems there is loss of data but I do not know the…
vincent_01
  • 13
  • 2
0
votes
1 answer

Fetch specific keys from array of object in redisJson

I want to fetch starting 10 records with specific keys in Redis JSON - {uuid,content} using JSON.GET. I can fetch the 10 records and only one key using this command - JSON.GET blogs $.[0:10].uuid . How do i fetch other keys? Data - [ { …
Suyash Jawale
  • 190
  • 2
  • 13
0
votes
1 answer

Redis search unusual behaviour while using Ft.search

We are using Redis search utility to cache our data in JSON format. We have stored approx 4.3 milions records. Where id is the key and property such as color, latitude, longitude, and googlepolyline geometry (string) as an attribute. We have created…
0
votes
0 answers

socket.gaierror: [Errno 11001] getaddrinfo failed in Python and redisjson

I am trying to store some session data in Redis JSON, but I am running into the following error: Traceback (most recent call last): File "E:\Programming\projects\fullstack-ai-chatbot\server\env\lib\site-packages\redis\connection.py", line 559, in…
Dan ndongi
  • 23
  • 1
  • 5
0
votes
1 answer

Storing and querying JSON arrays in Redisjson with nodejs

What I was hoping to do was store an array of objects using RedisJSON very simply and then query that array. I have something similar to this: const data = [ { _id: '63e7d1d85ad7e2f69df8ed6e', artist: { genre: 'rock', }, }, …
Jamie
  • 1,004
  • 1
  • 14
  • 32
0
votes
1 answer

Redis Lua that will create a default JSON on numincrby exception?

I am trying to run numincrby on a nested JSON that might or might not exist via multiple threads. If the key does not exist, a default JSON structure has to be created with the value 0 and the value incremented. e.g. JSON.NUMINCRBY "KEY"…
Josh
  • 113
  • 1
  • 10
0
votes
1 answer

How to use RediSearch and RedisJSON to query documents based on a condition (comparison operators)?

I have the following data stored as json using RedisJSON and I want to query a particular set of rows based on input criteria using RediSearch. Ex Data: { "Ticker": "AAPL", "Name": "Apple Inc.", "returns": [ { "Range": { "Begin":…
Gowthamss
  • 191
  • 1
  • 2
  • 13
0
votes
0 answers

How can I handle redis-cluster with Redis Stack (RedisJSON & RediSearch)?

I'm currently having problem dealing with redis-cluster. creating a redis cluster, I'm using the "redis/redis-stack-server:latest" docker image. I am doing a query test using RediSearch, but in standalone mode, the number of requests per second is…
0
votes
1 answer

redis: Possible to update hash values with RedisJSON?

The documentation and Internet at large don't seem to provide any examples of setting values into a JSON object stored as a hash value, yet I know that the Redis collection types are often just hacks that allow their underlying storage to be managed…
Dustin Oprea
  • 9,673
  • 13
  • 65
  • 105
0
votes
1 answer

Redis OM dotnet - Group by + Count

I have started using Redis Stack recently with dotnet. I am however having issues to figure how to achieve the following aggregation. I have a list of sport events, each of them, among other properties, has SportCode and Status. I am trying to group…
Daniel Stoyanoff
  • 1,443
  • 1
  • 9
  • 25
0
votes
1 answer

RediSearch search results difference

I use Redis together with the modules RedisJSON and RediSearch. I have a question about the RediSearch module especially the FT.SEARCH. My Index looks like this: FT.CREATE chainIdIdx ON JSON PREFIX 1 chain-id. SCHEMA…
limdan
  • 3
  • 1
0
votes
1 answer

Installing Redis JSON on MacOSx with brew

How do you install RedisJSON on a macOSx with brew? How do you enable modules on redis without having to compile redis? I dont want to use docker clients
Merlin
  • 24,552
  • 41
  • 131
  • 206
0
votes
2 answers

RedisJSON add TTL on specific Value in JSON Object

Hey working with redisJSON NodeJS package npm Redis 4.3.1 Key (userID):(Country) with values Json Example data = { "info": { "name":"test", "email": "test@test,test" }, "suppliers": { "s1": 1, "s2": 22 }, "suppliersCap": { "s1": 0, "s2":…
IaMus90
  • 13
  • 1
  • 4
0
votes
1 answer

How to get just the value from JSON.GET using RedisJSON, without the surrounding brackets and double quotes?

Using Redis v6 and RedisJSON v2.2.0. Sample json: [ { "msg": "hello", "sql": "blah" } ] I can successfully get the msg value by calling: redisReply *reply = redisCommand(context, "JSON.GET sample-rj…
Dan
  • 2,209
  • 3
  • 23
  • 44