Hi,<div><br></div><div>I'm trying to use a custom extractor, but I can't for the life of me seem to get the syntax right. Even the simplest thing I can think to try won't work.</div><div><br></div><div>I've tried setting the rs_extractfun property as described in the documentation - both of these methods</div>
<div>    </div><meta charset="utf-8"><span class="Apple-style-span" style="color: rgb(68, 68, 68); font-family: sans-serif; font-size: 14px; line-height: 14px; "><ul style="margin-top: 0px; margin-right: 0px; margin-bottom: 20px; margin-left: 1.8em; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">
<li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; line-height: 18px; color: rgb(78, 78, 78); background-position: initial initial; background-repeat: initial initial; ">
{jsanon, {Bucket, Key}}, where Bucket and Key name a Riak object that contains the source of a Javascript function to call for extraction.</li><li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; line-height: 18px; color: rgb(78, 78, 78); background-position: initial initial; background-repeat: initial initial; ">
{jsanon, Source}, where Source is the source of a Javascript function to call for extraction.</li></ul></span><div>> Client:set_bucket(<<"extractTest">>, [{rs_extractfun, {jsanon, <<"function(){return{'name':'greg', 'login':'gpascale'};}">>}}]).</div>
<div><meta charset="utf-8">> Client:set_bucket(<<"extractTest">>, [{rs_extractfun, {jsanon, {<<"extractors">>, <<"myextractor">>}}}]).</div><div><br></div>
<div>but neither of these work.</div><div><br></div><div>Can somebody point out where I'm going wrong?</div><div><br>-- <br>Greg<div><div><div><div><div><a href="http://www.clipboard.com" target="_blank">Clipboard</a> is <a href="http://www.clipboard.com/jobs" target="_blank">hiring</a>!</div>
</div></div></div></div><br>
</div>