Made search service a 'service' instead of a 'factory'