On 8 Jan 2012, at 11:03, Yehuda Zargrov wrote:

> Hi,
>  
> I’m adding a range of keys to a MapReduce object, knowing that some of them 
> do not exist.
> When running map & reduce functions, I’ve noticed a strange behavior like 
> adding ‘not_found’ records to the input of the reduce. Is there a way to 
> simply ignore un-existing keys?

Yes. If you're using the erlang map function 
riak_kv_mapreduce:map_object_value, you can pass an arg of 'filter_notfound' to 
filter out the not_found keys. If using js, you can have a look at this entry 
in our knowledge base 
(https://help.basho.com/entries/326412-how-do-i-filter-out-not-found-from-map-reduce-results)
 which shows how to use a reduce phase to filter out not_founds.

Cheers

Russell

>  
> Thanks,
>  
> <image001.png>
>  
> Yehuda Zargrov
> Software Engineer
> Conduit Your Site
> t: +972.8.946.1713 ext +288 |   m: +972503473119   |   f: +97286382140
> 
> This message may contain confidential and/or privileged information. It is 
> intended to be read only by the individual or entity to whom it is addressed 
> or by their designee. 
> If the reader of this message is not the intended recipient, you are on 
> notice that any uses, copy, disclose or distribution of this message, in any 
> form, is strictly prohibited. 
> If you have received this message in error, please notify the sender by reply 
> email or by telephone and delete or destroy any copy of this message. Thank 
> you.
> 
> 
>  
> _______________________________________________
> riak-users mailing list
> [email protected]
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

_______________________________________________
riak-users mailing list
[email protected]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to