On 09/11/2012 07:47 AM, Mark Phillips wrote:
> Hey Antoine,
>
> Sorry for the delay here. Just for the sake of completeness, can you
> provide the MapReduce job that's not running?
>
> Mark
Hey,
Thanks for your answer ;)
It turns out I've managed to make it work, probably was an error in the
Javascript MapReduce indeed (the thing is that the output isn't very
chatty about what's actually wrong).
I've encountered another problem though.
I've decided to test both possibilities :
-working with user-defined keys and sorting them with key_filters
-working with riak-defined keys and filtering thanks to
map/reduce+javascript.
This time, the riak-defined works, but not the solution with my keys.
My keys are formated like this : <word>_YYYYMMDD_HHMM
I want to get all values where the key starts exactly with the specified
word and where <minDate> <= YYYYMMDD <= maxDate
My problem lies in the combination of the two constraints.
I managed the one with the specified word, and the one with the dates.
But not both simultaneously : I get the following error ->
{"error":"map_reduce_error"}
Here's the Json I send to /mapred : https://gist.github.com/3699779
I've also included in this gist the errors I got in Riak's crash.log.
At the end of the Gist are the two requests that do work. Can't seem to
merge them into one with the [["and" ...]] tool.
If you have any clue where this crash can come from, feel free to tell me :)
Have a good day,
Antoine
_______________________________________________
riak-users mailing list
[email protected]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com