Implement base class for search and Add SearchMessages.