Excuse my doubel-posting and replying to my own thread.
I found this in PBClientAdapter class in fetchIndex method
final MapReduce mr = new IndexMapReduce(this, indexQuery);
mr.addReducePhase(NamedErlangFunction.REDUCE_IDENTITY,
Args.REDUCE_PHASE_ONLY_1);
// only return th
Seems that i discover how to use this 2i range queries from riak_client:
> {ok, C} = riak:local_client(),
> C:get_index(<<"bucket_name">>, {range, <<"$key">>, <<"k1">>, <<"k7">>}).
> {ok, [<<"k7">>, <<"k6">>, <<"k5">>, <<"k4">>, <<"k3">>, <<"k2">>,
> <<"k1">>]}
where <<"$key">> is a special value
I'm running 1.1.0 built from source on Centos 6. I set up two nodes on
localhost following the instructions on the basho site for testing and
everything was going fine until i needed to fetch all items in a bucket.
For this i was using node.js with riak-js and it's db.getAll call,which from
the