Re: How to add custom javascript function

2013-06-14 Thread Sam Elliott
Hi Kari On Wed, Jun 12, 2013 at 9:09 AM, Kari Lehtomaa wrote: > Hi! > > I have modified Riak contrib custom JS function to sort results in reduce. > I also set the JS dir in app.config but result is > always: <<"ReferenceError: Contrib is not defined">>. I couldn't find any > instructions how to

How to add custom javascript function

2013-06-12 Thread Kari Lehtomaa
Hi! I have modified Riak contrib custom JS function to sort results in reduce. I also set the JS dir in app.config but result is always: <<"ReferenceError: Contrib is not defined">>. I couldn't find any instructions how to add custom JS functions to Riak. How I call it from the reduce in Node.js?