change SearchService into an interface and make attributes public