Updated /search API endpoint.