Can you provide your map/reduce queries in a pastie or gist?

Daniel Reverri
Developer Advocate
Basho Technologies, Inc.
d...@basho.com


On Tue, Jan 4, 2011 at 8:06 AM, Shai Garniek <sgarn...@gmail.com> wrote:

> I am running a map/reduce query on riak and I'm getting something weird in
> the result.
> After 2 map phases and one reduce phase I'm getting the following result
>
> ["{\"apps\":[\"11\",\"12\"]}","{\"apps\":[\"1\",\"2\",\"3\",\"4\"]}"]
>
>
> when I'm expecting this result.
>
>
>
> [{"apps":["11","12"]},{"apps":["1","2","3","4”]}]
>
>
> can anyone tell me why the map/reduce phases wrapped my json objects with
> "" and added all the backslashes?
>
> when I read these values straight forward I get them as objects and not
> wrapped and escaped.
>
>
> --
> Shai
>
> _______________________________________________
> riak-users mailing list
> riak-users@lists.basho.com
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>
>
_______________________________________________
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to