Add try-except block to event listeners.
Correct method names in event listeners
Store attributes from a model only it its available.
Add field for storing search results.
Remove the field for storing search results with the index.