#8 enhanced the search functions for the repository with criteria