Hi, I had question about Link walking. I need to walk links in few levels and keep results from previous steps. I managed to achieve this using URL syntax /users/userid/projects,*,1/parts,*,1/units,*,* Here I find all user's projects than parts and finally units.
However I couldn't achieve the same results using map-reduce and link phases. curl -X POST -H "content-type: application/json" http://localhost:8098/mapred --data @-<<\EOF {"inputs":[["users","userid"]],"query":[{"link":{"bucket":"projects","keep":true}},{"link":{"bucket":"parts","keep":true}},{"link":{"bucket":"units"}},{"map":{"language":"javascript","source":"function(v) { return [v]; }"}}]} EOF I got full documents from last step but for projects and parts I got only bucket, key and tag (there was no document body and metadata). Is it some problem in map function? Any hints, advises? Best regards, Anton Podviaznikov
_______________________________________________ riak-users mailing list [email protected] http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
