Bryan,

That should only be an issue if you are putting the source of the function 
directly in your query.  Instead, try saving the function in a bucket/key and 
refer to it that way. Here's what a phase using bucket/key instead of source 
would look like:

{"map":{"language":"javascript","bucket":"customMR","key":"extractSomeFields","keep":false}}

You can use curl or any one of the the language-specific clients to store the 
function, just specify "application/javascript" as the content-type.

I use this technique in the "yakriak" demo app: 
http://github.com/seancribbs/yakriak

Sean Cribbs <[email protected]>
Developer Advocate
Basho Technologies, Inc.
http://basho.com/

On Sep 8, 2010, at 4:44 AM, Bryan Berry wrote:

> hey riak buddies, I find that I have to write my mapreduce functions in one 
> single line w/out tabs or line breaks. 
> Is there an easier way to do it? This makes my code pretty unreadable.
> 
> I am using emacs btw, w/ js2-mode
> _______________________________________________
> 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