added return_type search (to allow access to the search engine api)
added search api example