# 搜索话题

可以在 GitHub 上搜索与存储库关联的主题。

## 在 GitHub 中搜索主题

可以在 GitHub 上搜索主题、探索相关主题以及查看有多少存储库与特定主题关联。

1. 导航到 搜索页 (`https://[hostname]/search`)。
2. 输入主题关键词。
3. 在左侧边栏中，要将搜索范围缩小到主题，请单击“主题”。

## 使用搜索限定符缩小搜索范围

如果要探索关于特定主题的存储库、查找要贡献内容的项目或了解哪些主题在 GitHub 上最受欢迎，可以使用搜索限定符 `is:featured`、`is:curated`、`repositories:n` 和 `created:YYYY-MM-DD` 搜索主题。

`is:featured` 搜索限定符可将搜索结果范围缩小到 GitHub 上具有最多存储库的主题。 这些主题还在 <https://github.com/topics/> 中提供。

`is:curated` 搜索限定符可将搜索结果范围缩小到社区成员已添加额外信息的主题。 有关详细信息，请参阅[探索存储库](https://github.com/github/explore)。

可以使用日期参数和 `created:` 根据创建时间筛选主题，也可以使用 `repositories:n` 根据与此主题关联的存储库数量筛选主题。 这两个限定符都可以使用[大于和小于范围限定符](/zh/enterprise-server@3.22/search-github/getting-started-with-searching-on-github/understanding-the-search-syntax)。

日期格式必须遵循 [ISO8601](http://en.wikipedia.org/wiki/ISO_8601) 标准，即 `YYYY-MM-DD`（年-月-日）。 也可以在日期后添加可选的时间信息 `THH:MM:SS+00:00`，以按小时、分钟和秒进行搜索。 即 `T`，随后是 `HH:MM:SS`（时-分-秒）和 UTC 时差 (`+00:00`)。

搜索日期时，可以使用大于、小于和范围限定符来进一步筛选结果。 有关详细信息，请参阅“[了解搜索语法](/zh/enterprise-server@3.22/search-github/getting-started-with-searching-on-github/understanding-the-search-syntax)”。

| 限定符                                                                                                                                                                               | 示例 |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -- |
| `is:curated`                                                                                                                                                                      |    |
| **is:curated javascript** 匹配精心策划且含有“javascript”字样的主题。                                                                                                                             |    |
| `is:featured`                                                                                                                                                                     |    |
| \[                                                                                                                                                                                |    |
| **is:featured javascript**]\(<https://github.com/search?utf8=%E2%9C%93&q=javascript+is%3Afeatured&type=Topics>) 匹配 <https://github.com/topics/> 上提供且含有“javascript”字样的主题。          |    |
| `is:not-curated`                                                                                                                                                                  |    |
| **is:not-curated javascript** 匹配没有额外信息（例如说明或徽标）且含有“javascript”字样的主题。                                                                                                              |    |
| `is:not-featured`                                                                                                                                                                 |    |
| \[                                                                                                                                                                                |    |
| **is:not-featured javascript**]\(<https://github.com/search?utf8=%E2%9C%93&q=javascript+is%3Anot-featured&type=Topics>) 匹配 xhttps\://github.com/topics/ 上未提供且含有“javascript”字样的主题。 |    |
| `repositories:n`                                                                                                                                                                  |    |
| **repositories:>5000** 匹配具有超过 5000 个存储库的主题。                                                                                                                                       |    |
| <code>created:<em>YYYY-MM-DD</em></code>                                                                                                                                          |    |
| **无服务器 创建时间:>2019-01-01** 匹配在 2018 年之后创建的包含“无服务器”字样的主题。                                                                                                                           |    |

## 按主题搜索仓库

可以使用 `topic:` 限定符查找连接到特定主题的每个存储库。 有关详细信息，请参阅“[搜索仓库](/zh/enterprise-server@3.22/search-github/searching-on-github/searching-for-repositories#search-by-topic)”。

## 其他阅读材料

* [使用主题对仓库分类](/zh/enterprise-server@3.22/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/classifying-your-repository-with-topics)