Re: 2i with the riakc client

2012-07-23 Thread Jeremy Ong
Hi, to close this thread, I wrote a very brief blog post documenting basic usage of secondary indices and get_index using riakc at http://www.jeremyong.com/blog/2012/07/23/secondary-indices-in-riak-with-erlang/ It's obviously not geared toward expert users (I for one, am not an expert user) but I'

Re: 2i with the riakc client

2012-07-22 Thread Jeremy Ong
Ah perfect that works thanks. I saw the github issue asking for documentation on this. I feel woefully unqualified to write this up, but would be happy to for the benefit of other users running into similar issues as I. Thanks, Jeremy On Sun, Jul 22, 2012 at 2:02 PM, Sean Cribbs wrote: > Jerem

Re: 2i with the riakc client

2012-07-22 Thread Sean Cribbs
Jeremy, Your index field must have a "_bin" or "_int" suffix on it to signify whether it is a binary or an integer. Add "_bin" to the field name you have in your example, e.g. MetaData = dict:store(<<"index">>, [{<<"afield_bin">>, <<"avalue">>}], dict:new()) On Sun, Jul 22, 2012 at 4:49 PM, Jere