Nick O: Added a search function for indexing many records together, more unit test coverage