C++: Add managed by search into SearchAgent