refactor SearchRequestHandler