Kaspar, I don't know the details of the Java API but re-writing the object should suffice. Riak will remove the old indexes for you and create the new ones.
-Z On Wed, Jul 18, 2012 at 5:00 AM, Kaspar Thommen <[email protected]>wrote: > Hi, > > Say I have a 'users' bucket that stores user data (name, email) and I also > have secondary index to access users by e-mail, how do I update the index > in case a user's e-mail address changes? > > The only approach I found so far was to completely delete the user object, > which implies a deletion of the index entry, and then recreate the update > object and add the new e-mail to the index. Is this the only way? > > Thanks, > Kaspar > > _______________________________________________ > riak-users mailing list > [email protected] > http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com > >
_______________________________________________ riak-users mailing list [email protected] http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
