refactor SearchService to server pkg