# YouTube 标题在搜索结果中间歇性出现

**URL:** <https://meta.discourse.org/t/youtube-titles-intermittently-appearing-in-search-results/366060>\
**Category:** Bug\
**Created:** [2025年五月14日 09:06 UTC](https://meta.discourse.org/t/youtube-titles-intermittently-appearing-in-search-results/366060 "2025-05-14T09:06:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ma0sm](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ma0sm/32/259526_2.png) [@ma0sm](https://meta.discourse.org/u/ma0sm)\
**Post date:** [2025年五月14日 09:06 UTC](https://meta.discourse.org/t/youtube-titles-intermittently-appearing-in-search-results/366060/1 "2025-05-14T09:06:55Z")

</div>

我发现一个旧主题，其中引入了一项功能，允许在搜索结果中检索 YouTube 视频标题。

> [@Site search not working for oneboxed content?](https://meta.discourse.org/t/site-search-not-working-for-oneboxed-content/76175/8?u=ma0sm):
>
> This is fixed per: [https://github.com/discourse/discourse/commit/6676bbd38b7f17295c4c2bca32bdda2fc98bde47](https://github.com/discourse/discourse/commit/6676bbd38b7f17295c4c2bca32bdda2fc98bde47) Requires a rebake for titles to appear in search.

但是，我发现 [https://community.drownedinsound.com](https://community.drownedinsound.com) 上的此功能工作不一致。

示例

在 [Later… with Jools Holland 主题](https://community.drownedinsound.com/t/later-with-jools-holland/88172) 中，有许多 YouTube 视频作为回复发布。

如果我搜索 At The Drive-In（[第五个回复](https://community.drownedinsound.com/t/later-with-jools-holland/88172/5?u=ma0sm)），我们可以清楚地看到 YouTube 标题已被成功索引，并且可以作为结果的一部分进行搜索。

 ![图片显示论坛上的帖子，显示用户 ma0sm 在 15 小时前发布的文字“At The Drive-In – One Armed Scissor (Later Archive 2000)”，并附有 YouTube 链接。（由 AI 标注）](https://global.discourse-cdn.com/meta/original/4X/0/0/a/00a315a05ac2c0fc993c08167c424ef0a1fa2b3c.png)

但是，如果我搜索 Battles（[第六个回复](https://community.drownedinsound.com/t/later-with-jools-holland/88172/6?u=ma0sm)），则不会返回任何结果。

 ![图片显示搜索界面，在主题部分搜索“Battles”，但未找到结果。（由 AI 标注）](https://global.discourse-cdn.com/meta/original/4X/1/0/8/108b897555f1b99bb766cd1980ad7cfd56a0ac5f.png)

一个被正确索引而另一个没有被索引的原因是什么？如果能帮助诊断问题，我很乐意尝试不同的方法/提供更多信息。

---

<div class="post-metadata">

**Author:** ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)\
**Post date:** [2025年五月14日 18:12 UTC](https://meta.discourse.org/t/youtube-titles-intermittently-appearing-in-search-results/366060/2 "2025-05-14T18:12:05Z")

</div>

> [@ma0sm](#):
>
> 我们可以清楚地看到 YouTube 标题已被成功索引，并且可以作为搜索结果的一部分进行搜索。

这个例子有点误导，视频标题出现在结果中——但结果是基于帖子中的文本

 ![这张图片似乎是来自社交媒体平台的截图，其中包含一个关于标题为“At The Drive-In”的帖子或讨论。 (AI 标注)](https://global.discourse-cdn.com/meta/original/4X/f/c/7/fc72bf0f481ce5bec60476c703f88175cd3b15da.png)

这绝对是某种问题……另一个例子，帖子中没有 `mcalmont` 文本，也没有结果：

 ![这张图片显示了用户 fitzcaraldo 的一个帖子，其中包含一个视频缩略图，并表示某个表演或歌曲是“绝对最好的”。 (AI 标注)](https://global.discourse-cdn.com/meta/original/4X/7/b/3/7b381507b429261aad688adc5b6048e7d38ad9e1.png)

这也很奇怪，因为同一个视频出现在其他主题中……所以视频标题被索引了，但并不一致。

 ![这张图片显示了一个 YouTube 网页，其中包含用户“OtherwiseOutcomes”发布的标题为“Battles Atlas @ Live Later whit Jools Holland 2007”的帖子，以及一个表演视频的部分视图和右侧的相关内容。 (AI 标注)](https://global.discourse-cdn.com/meta/original/4X/2/4/6/2464b3e568b95e7f7a52675435de2b187dc6cc98.jpeg)

我在本地测试环境中看到了另一种变化……

如果我在所有主题中搜索视频，我会得到预期的结果：

 ![这张图片显示了一个视频的搜索结果，标题为“这是一个关于音乐趋势专辑和视频的棒球主题社交媒体帖子。” (AI 标注)](https://global.discourse-cdn.com/meta/original/4X/a/2/1/a21d59d63f920802781608256d58bbd3db495c3b.png)

如果我在主题内搜索……找不到！

 ![这张图片显示了一系列文本条目，其中一个提到了“70-80 年代平滑日式律动 1 小时”。 (AI 标注)](https://global.discourse-cdn.com/meta/original/4X/f/b/4/fb49c61964da93df68c91b8c1d5fce105c4011b1.png)

帖子本身已被索引，因为我可以匹配内容：

 ![image](https://global.discourse-cdn.com/meta/original/4X/2/f/9/2f980255e99bccf5b138d1fedb6a8f1b5b628d9a.png)

这不是我的专长，所以我不知道这里发生了什么，但希望更熟悉搜索的人能看一下。
