Secondary index in riak

Christopher Meiklejohn cmeiklejohn at basho.com
Thu Feb 19 09:45:04 EST 2015


> On Feb 19, 2015, at 9:06 AM, Jose G. Quenum <jose.quenum at googlemail.com> wrote:
> 
> Hi all,
> I'm getting into a scenario where I'd like to use a secondary index on a particular field in my riak object/data. However the value of the field might change albeit very very rarely. So I was thinking I could just reindex using the new value. What's the right syntax to delete and add a new secondary index? A map-reduce approach would be great. I wouldn't mind a better alternative though.

Hi Jose,

Are you referring to just removing the index from the object?  If so, you should be able to just read the object and rewrite it without the index metadata.

- Chris

Christopher Meiklejohn
Senior Software Engineer
Basho Technologies, Inc.
cmeiklejohn at basho.com





More information about the riak-users mailing list