moving search request handling to a service