Loading documents in the map phase

Dan Reverri dan at basho.com
Thu Feb 3 12:21:14 EST 2011


Hi Eric,

That initial map phase will have access to "entry_list/eric". If you return
a list of bucket/key pairs and add another map phase Riak will fetch the
objects referenced by the bucket/key pairs.

Thanks,
Dan

Daniel Reverri
Developer Advocate
Basho Technologies, Inc.
dan at basho.com


On Thu, Feb 3, 2011 at 8:28 AM, Eric Moritz <eric at themoritzfamily.com>wrote:

> For some reason I was under the impression that I could return a list of
> bucket/key pairs in a map phase and Riak would automagically load the
> documents for the next query phase.
>
> For instance I have the document:
>
> /riak/entry_list/eric
>
> [
>   ["entries", "story-1"],
>   ["entries", "story-2"],
> ]
>
> then obviously documents in /riak/entries/story-1 and /riak/entries/story-2
>
> Then I have the following query:
>
> {
> "inputs": [ ["entry_list", "eric"] ],
>  "query": [
>    {"map": {"language": "javascript", "name": "Riak.mapValuesJson"}},
>  ]
> }
>
> I assumed that what I would get out of the query was the content of
> /riak/entries/story-1 and /riak/entries/story-2
>
> Am I mistaken?
>
> Thanks,
> Eric.
>
> _______________________________________________
> riak-users mailing list
> riak-users at lists.basho.com
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20110203/9fd610db/attachment.html>


More information about the riak-users mailing list