Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get/Filter in a JSON Key Values #38

Open
wscardua opened this issue May 14, 2020 · 3 comments
Open

Get/Filter in a JSON Key Values #38

wscardua opened this issue May 14, 2020 · 3 comments

Comments

@wscardua
Copy link

Hi Guys,

look my json

JSON.GET 906461499
"{"name": "jony", "time": "10:36:49", "date": "20190109", "ope": "U", "table": "C20010", "field": "U"}"

How can I get/filter in a JSON key value, like "name = 'jony'"

Thank you

@gkorland
Copy link
Contributor

You should use the master version of RedisJSON https://github.com/RedisJSON/RedisJSON

JSON.QGET person "@name:jony"

@wscardua
Copy link
Author

Hi gkorland,

Thank you ..,

but I receive a error when I try to create a index

JSON.INDEX ADD name_idx name $.name
(error) unknown command JSON.INDEX, with args beginning with: ADD, name_idx, name, $.name,

module list

    1. "name"
    2. "ft"
    3. "ver"
    4. (integer) 10613
    1. "name"
    2. "ReJSON"
    3. "ver"
    4. (integer) 10004

@gkorland
Copy link
Contributor

@wscardua which version are you using?
Notice JSON.INDEX is only available on master.
You can also get it from dockerhub docker pull redislabs/rejson:edge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants