How to add a secondary index with the Java client

Jeff Peck jeffp at tnrglobal.com
Mon Apr 8 16:56:50 EDT 2013


Hello,

I have been looking through the documentation for an example of how to add a secondary index in Riak, using the Java client.

I am currently storing my object (which is a HashMap) like this:

bucket.store(key, docHashMap).execute();

What would I need to do to add an index to that object before it gets stored?

Thanks,
Jeff






More information about the riak-users mailing list