@rollin
To query nested keys in Riak, you will need to use Riak's MapReduce queries. Here is an example of how to query nested keys in Riak using MapReduce:
1 2 3 4 5 6 7 8 9 10 11 |
{ "inputs": "example_bucket", "query": [ { "map": { "language": "javascript", "source": "function(value, keyData, arg) { var data = Riak.mapValuesJson(value)[0]; if(data.nested_key) { return [[ data.nested_key ]]; } else { return []; } }" } } ] } |
1
|
curl -X POST http://localhost:8098/mapred --data '<MapReduce query>' |
This is a basic example of how you can query nested keys in Riak using MapReduce. You can customize the query to fit your specific requirements and retrieve the nested keys you need.