Hello,

I'm having issues link walking using the Map Reduce link function.  I am
using HEAD from Git, so it's possible that's the issue, but here is what is
happening.

I've got two buckets, user and user_email where user_email contains a link
to the user.

When I run this:

{
    "inputs": [
        [
            "user_email",
            "[email protected]"
        ]
    ],
    "query": [
        {
            "link": {
                "bucket": "user",
                "tag": "user"
            }
        }
    ]
}

I only get [["user","LikiWUPJSFuxtrhCYpsPfg","user"]] returned.  The second
I add a map function, even the simplest one (function(v) { [v] } I get a
"map_reduce error":

{
    "inputs": [
        [
            "user_email",
            "[email protected]"
        ]
    ],
    "query": [
        {
            "link": {"bucket":"user", "tag":"user"}
        }
       ,{
            "map": {
                "language": "javascript",
                "source": "function(v) { return[v]; }"
            }
        }
    ]
}

Is this functionality broken?  I am following what it says on the Wiki for
the MapRed version of link walking.  When I use HTTP link walking, it works
correctly.

Thanks,

Andrew
_______________________________________________
riak-users mailing list
[email protected]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to