making sure the search/doc endpoints are updated when a new domain is set