Riak Search JSON list

289 Views Asked by At

I wonder how you can search in Riak Search for list items.

e.g.:

{
    "name": "Zombies Eat Brains",
    "tags": ["zombies", "funny", "lol"]
}

search-cmd search objects ???

1

There are 1 best solutions below

0
On

Yes, you can search any kind of field in JSON.

E.g. in bucket 'products' I have value

keywords: [
"New York",
"billboard",
"outdoors"
]

I find the result with the search:

search-cmd search products "keywords:billboard"

Read more at