use a User object instead of Long for users in search API