added parse method to search controller.