Rusty, I was referring to the index value. I understand I need to make another trip to get the actual value stored at the key, but I was hoping I could get the value of the index field directly from an index query.
For clarity, if I have a riak key "foo" with a value of "bar", and an index "score_int" with a value of 5, I'd like to be able to range query against the score_int index and return both the list of keys ("foo") and the value of the index I queried ("5"). From: Rusty Klophaus [mailto:ru...@basho.com] Sent: Friday, November 18, 2011 10:43 AM To: Tim Ariyeh Cc: riak-users@lists.basho.com Subject: Re: 2i Values Hi Tim, No, that's not currently possible. Just to clarify, when you say you want the "respective value", do you mean the object's value in Riak (ie: the result of a GET operation) or rather the index's value (ie: the value associated with the _int index)? Thanks, Rusty On Fri, Nov 18, 2011 at 11:04 AM, Tim Ariyeh <tari...@softlayer.com<mailto:tari...@softlayer.com>> wrote: Is it possible to return a value along with a 2i query? For instance, if I perform a range query against an _int index, can I return both the relevant and keys their respective value for that field? If not, can they be accessed in a reduce function without loading the document? Thanks, Tim _______________________________________________ riak-users mailing list riak-users@lists.basho.com<mailto:riak-users@lists.basho.com> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com -- Rusty Klophaus (@rustyio) Basho Technologies, Inc. www.basho.com<http://www.basho.com/>
_______________________________________________ riak-users mailing list riak-users@lists.basho.com http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com