Callixte, You run the following:
db.save('bucket', 'key', {index: {indexkey: 'value'}}); Cheers, Mathias -- http://riakhandbook.com On Wednesday, 26. September 2012 at 23:51, Callixte Cauchois wrote: > Having a Basho backed official client for node.js sounds promising. I'll give > it a try and test it. For now, I have one question: > I didn't completely get how to set 2i. Do you put something like { indexkey: > value } in the option field when calling save? it seems from the code that > the x-riak-index- and the _bin or _int are appended. > > Thanks. > C. > > On Wed, Sep 26, 2012 at 2:21 PM, Mathias Meyer <me...@paperplanes.de > (mailto:me...@paperplanes.de)> wrote: > > The drop of PB in the new js branch is for now just temporary. Allows us to > > focus on getting the JavaScript code base up to speed at least feature-wise > > and get a feeling for how things could evolve for its API. Help on getting > > PB support back into that branch is more than welcome! But I'll also be > > happy to look into it myself once the code in general is up to speed with > > the newest Riak feature set, for which I unfortunately don't have a > > specific timeline right now, as I'm still digging through the code, adding > > tests, completing features, etc. > > > > Cheers, Mathias > > -- > > http://riakhandbook.com > > > > > > > > > > > > On Wednesday, 26. September 2012 at 20:36, Sebastian Cohnen wrote: > > > > > The drop of Protocol Buffers (according to the readme) is a sad thing. > > > AFAIK there is not a single usable Riak client lib for node that supports > > > PB :-/D > > > > > > > > > On 26.09.2012, at 20:25, Mark Phillips <m...@basho.com > > > (mailto:m...@basho.com) (mailto:m...@basho.com)> wrote: > > > > > > > Hi Callixte - > > > > > > > > On Wed, Sep 26, 2012 at 12:51 PM, Callixte Cauchois > > > > <ccauch...@virtuoz.com (mailto:ccauch...@virtuoz.com) > > > > (mailto:ccauch...@virtuoz.com)> wrote: > > > > > Hello, > > > > > > > > > > what would you guys advise me to use to connect to riak in node.js? > > > > > Basho seems to push for Voxer's node_riak > > > > > (https://github.com/mranney/node_riak), but are there better > > > > > alternatives? > > > > > > > > > > > > > > > > In addition to node_riak, Mathias Meyer (with some help from Sean > > > > Cribbs) has been putting in some work on our fork of riak-js (working > > > > primary to get it working with current Riak and finish Francisco's > > > > port to JS). > > > > > > > > https://github.com/basho-labs/riak-js/tree/js > > > > > > > > Perhaps Mathias or Sean can shed some light on when it might be up to > > > > date with 1.2? > > > > > > > > Mark > > > > > > > > > > > > > > Thanks. > > > > > C. > > > > > > > > > > _______________________________________________ > > > > > riak-users mailing list > > > > > riak-users@lists.basho.com (mailto:riak-users@lists.basho.com) > > > > > (mailto:riak-users@lists.basho.com) > > > > > http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com > > > > > > > > > > > > > > > > _______________________________________________ > > > > riak-users mailing list > > > > riak-users@lists.basho.com (mailto:riak-users@lists.basho.com) > > > > (mailto:riak-users@lists.basho.com) > > > > http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com > > > > > > > > > > > > > > > _______________________________________________ > > > riak-users mailing list > > > riak-users@lists.basho.com (mailto:riak-users@lists.basho.com) > > > (mailto:riak-users@lists.basho.com) > > > http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com > > > > > > > > > > _______________________________________________ > > riak-users mailing list > > riak-users@lists.basho.com (mailto:riak-users@lists.basho.com) > > http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com >
_______________________________________________ riak-users mailing list riak-users@lists.basho.com http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com