# 重新烘焙了所有帖子 - 搜索结果仍显示旧内容

**URL:** <https://meta.discourse.org/t/rebaked-all-posts-search-results-still-showing-old-stuff/208839>\
**Category:** Support\
**Created:** [2021年十一月10日 22:58 UTC](https://meta.discourse.org/t/rebaked-all-posts-search-results-still-showing-old-stuff/208839 "2021-11-10T22:58:43Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jaffadog](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jaffadog/32/236329_2.png) [@jaffadog](https://meta.discourse.org/u/jaffadog)\
**Post date:** [2021年十一月10日 22:58 UTC](https://meta.discourse.org/t/rebaked-all-posts-search-results-still-showing-old-stuff/208839/1 "2021-11-10T22:58:43Z")

</div>

我正在清理包含糟糕旧编码（例如，空格的“=0A”）的旧帖子。然后，我使用以下命令重新烘焙了所有帖子：

```plaintext
rake posts:rebake

```

帖子现在看起来不错了，但我仍然在搜索结果中看到旧版本 - 例如：

 ![2021-11-10 17_55_48-Fundraising Time - BCC Forum - Sam L Morse](https://global.discourse-cdn.com/meta/original/3X/4/b/4ba883cc0532068b4581a8d1f41f35f1c9826463.png)

如何重新生成[搜索索引以反映帖子的当前状态？

---

<div class="post-metadata">

**Author:** ![IAmGav](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/iamgav/32/235598_2.png) [@IAmGav](https://meta.discourse.org/u/IAmGav)\
**Post date:** [2021年十一月11日 05:24 UTC](https://meta.discourse.org/t/rebaked-all-posts-search-results-still-showing-old-stuff/208839/2 "2021-11-11T05:24:54Z")

</div>

在 sidekiq ([mysite.com/sidekiq/scheduler](http://mysite.com/sidekiq/scheduler)) 中  
找到名为 `ReindexSearch` 的作业并触发它

---

<div class="post-metadata">

**Author:** ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)\
**Post date:** [2021年十一月11日 06:21 UTC](https://meta.discourse.org/t/rebaked-all-posts-search-results-still-showing-old-stuff/208839/3 "2021-11-11T06:21:46Z")

</div>

您可以运行 `rake search:reindex` 来规避该问题。

---

<div class="post-metadata">

**Author:** ![jaffadog](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jaffadog/32/236329_2.png) [@jaffadog](https://meta.discourse.org/u/jaffadog)\
**Post date:** [2021年十一月11日 23:07 UTC](https://meta.discourse.org/t/rebaked-all-posts-search-results-still-showing-old-stuff/208839/4 "2021-11-11T23:07:02Z")

</div>

> [@itsbhanusharma](#):
>
> rake search:reindex

这奏效了——谢谢！

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)\
**Post date:** [2021年十二月11日 23:08 UTC](https://meta.discourse.org/t/rebaked-all-posts-search-results-still-showing-old-stuff/208839/5 "2021-12-11T23:08:00Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
