关于 统一搜索
When you enable unified search, users can view search results from content on GitHub.com when searching from your GitHub Enterprise Server instance.
You can choose to allow search results for public repositories on GitHub.com, and you can separately choose to allow search results for private repositories on GitHub Enterprise Cloud. If you enable unified search for private repositories, users can only search private repositories that they have access to and that are owned by the connected organization or enterprise account. 更多信息请参阅“关于在 GitHub 上搜索”。
Users will never be able to search your GitHub Enterprise Server instance from GitHub.com, even if they have access to both environments.
After you enable unified search for your GitHub Enterprise Server instance, before individual users can see search results from GitHub.com on your GitHub Enterprise Server instance, each user must also connect their personal account on GitHub Enterprise Server with a personal account on GitHub.com. For more information, see "Enabling GitHub.com repository search in your private enterprise account."
通过 REST 和 GraphQL API 进行搜索不包含 GitHub.com 搜索结果。 不支持在 GitHub.com 中进行高级搜索和搜索 Wiki。
启用 统一搜索
Before you can enable 统一搜索, you must enable GitHub Connect. For more information, see "Managing GitHub Connect."
-
Sign in to GitHub Enterprise Server and GitHub.com.
-
From an administrative account on GitHub Enterprise Server, in the upper-right corner of any page, click .
-
If you're not already on the "Site admin" page, in the upper-left corner, click Site admin.
-
在左侧边� �中,单击 Enterprise(企业) 概述。
-
在企业帐户侧边� �中,单击 Settings(设置)。
-
在左侧边� �中,单击 GitHub Connect。
-
在“Users can search GitHub.com”下,使用下拉菜单,然后单击 Enabled。
-
(可选)在“用户可以在 GitHub.com 上搜索私有仓库”下,使用下拉菜单并单击 Enabled(启用)。