Questions tagged [redisjson]
117 questions
0
votes
2 answers
How to have a dynamic value using Redisearch ft.create?
I have a simple entry as such :
json.set a:1 . '{"name":"chloe", "age":26 , "foo" : {"bar" : 1}'
When creating an index I can go as far as
FT.CREATE ON JSON SCHEMA $.name AS name TEXT .....
However bar is a dynamic value and it can be changed.…

Hypothesis
- 1,208
- 3
- 17
- 43
0
votes
0 answers
How to use RedisJSON properly as a relational db?
I am using RedisJSON as module on top of Redis and I wonder how I can use a javascript object properly as a relational database.

Hypothesis
- 1,208
- 3
- 17
- 43
0
votes
1 answer
RedisJson: not able to find exact tree structure
we have array of objects which we are storing in RedisJson. object looks like this
[
{
"abcd": null,
"pqrs": "002090618000132",
"xyz":"SomeValue2",
"mnop": 5,
"Properties": {
"property1": "04240424",
…

Ameya Deshpande
- 3,580
- 4
- 30
- 46
0
votes
1 answer
json object append in redis-cli
i am using redis-cli for one of my project and i need to append the data into existing json in redis, i have tried json.arrappend but it is not working.
i need to append in sDetail array and in jsonDetails array. any suggestions how to append in…

Abhishek Chhabra
- 120
- 2
- 14
0
votes
0 answers
RedisJson and RedisSearch: (error) elem.map is not a function
I get this error when performing an FT.SEARCH through the redis-cli via both redis/redis-stack-server:latest and redislabs/redismod:latest and following the how-to herefor creating an index, documents, and querying them:…

Andrew S
- 411
- 4
- 6
0
votes
0 answers
Module /opt/rejson.so failed to load
ive been creating new intances for redis and clustering them. i would like my intsances to use rejson so im using redislabs/rejson. the only problem is when composing up i get this issue for all redis nodes.
here is the dockerfile for allredis…

Camille Basbous
- 299
- 5
- 11
- 34
0
votes
0 answers
How to keep an item unique on single attribute in Redis JSON?
I have a redis JSON collection and it must to store items unique.
[
{
"name": "John",
"tId": 13,
"phone": "124",
"city":"LA"
},
{
"name": "Jane",
"tId": 14,
"phone": "256",
"city":"NYC"
}
]
In this JSON, I…

is_oz
- 813
- 1
- 8
- 27
0
votes
0 answers
Data Compression or Reduction While Keeping Integrity in Python
I am getting some data (pixel data of pictures) and storing them in a RedisJSON database.
The problem is that each picture will yield about 11 MB of pixel data text, which will be very expensive to store.
Is there a way we can reduce the text while…

Kaiss B.
- 249
- 1
- 12
0
votes
0 answers
node redis multi path get error when there are no values
I have a code like this,
function generateJsonPaths(ids) {
const idsString = _.map(ids, id => `"${id}"`).join(',')
return `$.orgs.[${idsString}]`
}
const redisMulti = redisClient.multi()
const path = generateJsonPaths(ids)
_.each(hashes, hash =>…

z.a.
- 2,549
- 3
- 12
- 16
0
votes
1 answer
Can I geoquery nested Redis JSON objects
I'm caching JSON objects in Redis whose properties include an array of geocoordinates. Something like this:
{
"name": "bob",
"points": [[31.0234, 35.3458], [38.0873, 34.8863]]
If I have a bounding box, how can I query for a list of objects…

Boris K
- 3,442
- 9
- 48
- 87
0
votes
0 answers
Not understanding time complexity of Redis JSON?
From the docs at https://redis.io/docs/stack/json/path/#legacy-path-syntax:
The time complexity of searching (navigating to) an element in the path is calculated from:
Child level - every level along the path adds an additional search
Key search -…

Stevie
- 326
- 3
- 16
0
votes
1 answer
How do I store a large number objects in RedisJSON?
Say I have a JavaScript object structured like so:
{
id: "someUniqueId",
foo: "otherData",
bar: 30
}
I want to store hundreds of these in RedisJSON. I am currently initializing a key 'json-objects' as an empty object using the node-redis…

bapin93
- 162
- 10
0
votes
1 answer
wrong static path while adding new key value pair to an existing object
I'm trying to add new key value pair to an existing object but with no success.
the object looks like:
"weight": {
"options": {
},
"value": 50
}
my code is as following:
local optionId =…

Mohammed Ehab
- 207
- 1
- 5
- 14
0
votes
1 answer
Redis Json Module not opening
Module rejson.so failed to load: rejson.so: cannot open shared object file
Modified the permissions to write and execute but not working and also put to the etc/redis folder

Saurabh D Vyas
- 143
- 1
- 1
- 7
0
votes
1 answer
Is there any way that I don't use duplicate(or copy) variables for redisJSON?
Basically, I am trying to store a JSON of my application in redis using redisJSON. And I have different functions here and there in the project where I modify and update the json. Now currently, when I tried storing and updating the values in…

vuld0
- 184
- 1
- 1
- 9