Added type conversion to basic and advanced search controllers
Added PFQuery to retrieve results