Venkatesh,

You can pass them just as you would with any other map function, using the
'arg' parameter.  Here's a PHP example:

$mr->map(array("mybucket", "myfunction"), array("language" => "javascript",
"arg" => "the extra argument to your JS function"))

Just replace the RHS of the "arg" key with whatever data you want, as long
as it can be converted into JSON. That data will be passed as the third
argument to your function if it's a map, or the second argument if it's a
reduce.

On Wed, Jul 11, 2012 at 9:39 AM, Venki Yedidha
<[email protected]>wrote:

> Hi All,
>
>     I would like to know how I can pass json arguments to a function
> already stored under bucket/key..The map/reduce function is in javascript
> and I need to send parameters through php.
>
>   Thanks,
>   Venkatesh
>
> _______________________________________________
> riak-users mailing list
> [email protected]
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>
>


-- 
Sean Cribbs <[email protected]>
Software Engineer
Basho Technologies, Inc.
http://basho.com/
_______________________________________________
riak-users mailing list
[email protected]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to