Re: Error when trying to use a javascript custom extractor in Riaksearch

2011-05-22 Thread Greg Pascale
Yes that's the reference I've been using. I went with the {struct, JsonProplist} option because it can be set via the HTTP API. -Greg On Sat, May 21, 2011 at 11:48 PM, Andrew Berman wrote: > I'll preface this by saying I've never used this feature > > rs_extractfun should be set to one of t

Re: Error when trying to use a javascript custom extractor in Riaksearch

2011-05-21 Thread Andrew Berman
I'll preface this by saying I've never used this feature rs_extractfun should be set to one of the values defined in the Other Encodings section ( http://wiki.basho.com/Riak-Search---Indexing-and-Querying-Riak-KV-Data.html). In your case, {jsanon, "function(a,b){return{\"user\":\"gpascale\", \

Error when trying to use a javascript custom extractor in Riaksearch

2011-05-21 Thread Greg Pascale
I've been banging my head against the wall trying to get a javascript custom extractor working. Here is the simplest example I could come up with to reproduce the error. *curl -v -X PUT -H "Content-Type: application/json" http://localhost:8098/riak/test -d @data* where *@data* is a file that look