Node.js client addIndex() and map/reduce questions (Was: Object metadata via NodeJS client)

Jose G. Quenum jose.quenum at googlemail.com
Fri Apr 17 16:37:58 EDT 2015


Thanks! Will peruse through these links

Sent from my iPad

On Apr 17, 2015, at 7:15 PM, Luke Bakken <lbakken at basho.com> wrote:

>> 1 - when I have several indices to add to an object can I just chain them to the riakObject, ie, call successive addIndex methods to a riakObject?
> 
> Source code is available as part of the API docs. Note that "this" is
> returned, which allows chaining:
> 
> http://basho.github.io/riak-nodejs-client/files/lib_commands_kv_riakobject.js.html#l230
> 
>> 2 - when I am doing a map-reduce,
>>      a - can I use key filters? What's the syntax?
>>      b - how can I use map reduce to walk links? In riak-js I used to specify the links in the inputs. What is the syntax with this client?
> 
> I am not an expert with map/reduce, but did find the following documents:
> 
> http://docs.basho.com/riak/latest/dev/using/keyfilters/
> 
> http://docs.basho.com/riak/latest/dev/using/link-walking/ (Note
> deprecation notice)
> 
> --
> Luke Bakken
> Engineer
> lbakken at basho.com




More information about the riak-users mailing list