Secret group: The secret group can only be viewed by admins and those users who are invited. The search engine can not index the group page and its content.
Private group: While the title and description of a private group page will be indexed, the content will not be accessible to the search engine.
Public group: The content of public groups from the public communities are indexed.
Please note that if a community is private no content will be indexed.