Add search functionality for the index