Attempting to use secondary indexes

Craig Muth craig at homerun.com
Wed Aug 3 23:42:36 EDT 2011


I'm running the code example from
http://rusty.basho.com.s3.amazonaws.com/Presentations/2011-OSCONData-Portland.pdf

*This succeeds:*
curl \
  -X PUT \
  -d "OPAQUE_VALUE" \
  -H "x-riak-index-category_bin: armor" \
  -H "x-riak-index-price_int: 400" \
  http://127.0.0.1:8098/buckets/loot/keys/gauntlet24

*This verifies it's getting there:*
curl http://127.0.0.1:8098/riak/loot/gauntlet24
  => OPAQUE_VALUE

*However, this finds nothing:*
curl http://127.0.0.1:8098/buckets/loot/index/category_bin/eq/armor
  => {"keys":[]}

Whereas in the presentation it says it should return {"keys":["gauntlet24"]}

Any ideas?  Just grabbed the latest from github master.

--Craig
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20110803/ccb1a825/attachment.html>


More information about the riak-users mailing list