pass endpoint to search service
Merge pull request #658 from DaviRyan/SearchControlEndpoint

pass endpoint to search service