I am trying to get riak to return specific data instead of the keys.
I started with the fasttrack introduction. I can't find a way to retrieve the right data.
I am trying with this query (from here):
{"inputs":"goog",
"query":[{"map":{"language":"javascript",
"source":"function(value, keyData, arg) { var data = Riak.mapValuesJson(value)[0]; if(data.High && parseFloat(data.High) > 600.00) return [value.key]; else return [];}",
"keep":true}}]
}
I am trying to retrieve series of objects like {"Date":"YYYY-MM-DD","Open":123,"Close":123,"Volume":12345}
.
How can achieve this?