added a SearchIndex class