pass endpoint to search service