fixing search method by updating the endpoint and removing search_base