Is it possible to list all secondary index values previously saved in Riak bucket (leveldb, 2i enabled)? Having the following data in Riak:
curl -XPOST localhost:8098/types/indexes/buckets/users/keys/x -H 'x-riak-my_bin: a'
curl -XPOST localhost:8098/types/indexes/buckets/users/keys/y -H 'x-riak-my_bin: b'
I'd like to be able to send a query which would return me {a, b}
as a result (or possibly a stream handle to the same result, if it's too big). Something like:
curl -XGET localhost:8098/types/indexes/buckets/users/index/my_bin/_
Is is possible get such information from Riak?
Note: I am NOT interested in getting the actual object keys - {x, y}
in our case.