Updating UserSearchIndexAttributes after a Select Attribute option edit

Permalink
I edited one of the options of a select attribute (associated with users), the change is reflected in the users that had that option selected.
But I found that the advanced search for that option doesn't work (doesn't find anybody)
After some looking around I realized that the table UserSearchIndexAttributes was not updated the attribute was edited and still has the old option value.
I could run a script that resaves the affected users and that updates the table.
But does anybody have a general solution to this? so it's done automatically in the background when attributes are updated.

 

This website stores cookies on your computer. These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media. To find out more about the cookies we use, see our Privacy Policy.