Riak 2.1.3 devrel, built with Erlang basho/otp OTP_R16B02_basho10rc2
Following the examples here: http://docs.basho.com/riak/latest/dev/using/2i/#Examples
Reproduction script is attached: test-2i.txt
Please create a bucket type named people using the leveldb backend (or use leveldb as the default Riak backend)
Output:
$ ./test-2i
SHOULD ONLY RETURN LARRY:
{"keys":["veronica","curly","larry","moe"]}
SHOULD ONLY RETURN VERONICA:
{"keys":["veronica","moe","curly","larry"]}
Output when using a bucket type configured to use the memory backend:
$ ./test-2i.txt
SHOULD ONLY RETURN LARRY:
{"keys":["larry"]}
SHOULD ONLY RETURN VERONICA:
{"keys":["veronica"]}