LPS-28184 Regenerate the index when the model changes because the indexes are dropped

Hey Brian,

I have reviewed this ticket with @migue

Thanks!