Can't find docs/tutorial on secondary indexes for riak-erlang-client

Daniil Churikov ddosia at
Mon Mar 12 08:53:37 EDT 2012

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 ofr key index.
I test from shell such way:
$ curl -v -X GET

View this message in context:
Sent from the Riak Users mailing list archive at

More information about the riak-users mailing list