# 如何在 Discourse 中添加 Google 自定义搜索引擎

**URL:** <https://meta.discourse.org/t/how-to-add-google-custom-search-engine-to-discourse/157159>\
**Category:** Product Support\
**Created:** [2020 年7 月 8 日 15:21 UTC](https://meta.discourse.org/t/how-to-add-google-custom-search-engine-to-discourse/157159 "2020-07-08T15:21:20Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

作者： ![neounix](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neounix/32/215617_2.png) [@neounix](https://meta.discourse.org/u/neounix)\
发布日期： [2020 年7 月 8 日 17:21 UTC](https://meta.discourse.org/t/how-to-add-google-custom-search-engine-to-discourse/157159/10 "2020-07-08T17:21:10Z")

</div>

没有必要，也不是一个好主意，去替换 Discourse 内部的搜索功能。

不过，添加额外的搜索功能（无论是 Google 还是其他）完全没有问题。

最佳做法是通过插件来实现，并为其设置独立的页面或路由。

我的建议是，@KranthiKiranGude，请保留 Discourse 的搜索功能原样不变，然后创建一个插件，为 GCS 设置一个独立的页面或路由。

顺便提一下，我们之前的 LAMP 论坛正是这样做的。

---

_[View the full topic](https://meta.discourse.org/t/how-to-add-google-custom-search-engine-to-discourse/157159)._
