Hi Jaques, Sorry for the slow reply. I think this one just slipped by me. Ok. answers inline below:
On 14 Jun 2011, at 18:26, Jacques wrote: > Does anybody have any insight on my questions below? > > Thanks, > Jacques > > > On Tue, Jun 7, 2011 at 6:12 PM, Jacques <[email protected]> wrote: > I've been working on this. I have it working with an anonymous javascript > function. I was hoping to move it to using the "map_object_value" built-in > erlang function. However, when I attempt to use this function, I get > failures if any of my keys don't exist. Is there a way to construct my map > phase so that it gracefully handles not founds and just returns what it > finds? Yes. riak_kv_mapreduce:map_object_value accepts an arg value of either "filter_notfound", "include_notfound" or "include_keydata", so your not found values can be omitted by passing "filter_notfound" as the arg value for the map phase (instead of ATOM_NONE in your construction.) > > Also, using this function, is there a way to return the bucket and key names? > No not using riak_kv_mapreduce:map_object_value, you could use riak_kv_mapreduce:map_identity to get the whole riak object (meta data, key and value) or just write your own map reduce function that returns the data you want (and can filter out the not founds just like map_object_value) > Or can one assume the response order is identical to the order of inputs? No. > deletia Cheers Russell
_______________________________________________ riak-users mailing list [email protected] http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
