# 自动根据标题中的关键词重新分类导入的论坛主题

**URL:** <https://meta.discourse.org/t/automatically-re-categorize-topics-from-an-imported-forum-by-targeting-keywords-in-titles/164663>\
**Category:** Migration\
**Created:** [2020年九月20日 23:40 UTC](https://meta.discourse.org/t/automatically-re-categorize-topics-from-an-imported-forum-by-targeting-keywords-in-titles/164663 "2020-09-20T23:40:12Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)\
**Post date:** [2024年十二月20日 19:00 UTC](https://meta.discourse.org/t/automatically-re-categorize-topics-from-an-imported-forum-by-targeting-keywords-in-titles/164663/10 "2024-12-20T19:00:37Z")

</div>

据我记忆，自从我协助他完成许多与 Discourse 相关的工作以来，我记得他在导入后使用了一个 Rails 脚本。他通过标题中的关键词选择主题，然后使用官方文档记录的命令来移动它们，例如 [Administrative Bulk Operations](https://meta.discourse.org/t/administrative-bulk-operations/118349#p-582358-moving-topics-2%E3%80%82)

我还记得移动带有标签、官方命令和 rake 任务的主题并没有完全更新某些表，相关的周期性 Sidekiq 作业也没有。

我不知道现在是否还是这样，但这可能是需要注意的一点，请参见 [https://meta.discourse.org/t/bulk-tagged-topics-then-moved-topics-into-another-category-but-the-category-tag-selector-doesnt-show-tags/213136/3。](https://meta.discourse.org/t/bulk-tagged-topics-then-moved-topics-into-another-category-but-the-category-tag-selector-doesnt-show-tags/213136/3%E3%80%82)

希望这有帮助！

---

_[View the full topic](https://meta.discourse.org/t/automatically-re-categorize-topics-from-an-imported-forum-by-targeting-keywords-in-titles/164663)._
