Added search parameter for indexPeople function