Thanks, I'll try that.

Kaspar
On Jul 25, 2012 7:08 PM, "Brian Roach" <[email protected]> wrote:

> Sorry, I missed this one.
>
> As Ryan notes, you simply rewrite the object to Riak with the new indexes.
> There's no need to delete the object beforehand.
>
> With the Java client you can do this via a Mutation that would be used
> when you call StoreObject.execute()
>
> Thanks,
> - Roach
>
> On Jul 25, 2012, at 10:01 AM, Ryan Zezeski wrote:
>
> > 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
>
>
_______________________________________________
riak-users mailing list
[email protected]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to