small refactoring in searchserviceimpl, removed unused imports