Added search option
Missed the params[] identifier in the controller and added distance to in index when search