Refactor SearchIndex and add method to update an index.
Add event listener for model update
Add listener for model delete event.