Added search method in repository