fix error when copying embedded search server. it was missing to set the search repository to the new copy