# 有人使用ElasticSearch将搜索集成到WordPress或其他CMS吗？

**URL:** <https://meta.discourse.org/t/anyone-use-elasticsearch-to-integrate-search-with-wordpress-or-other-cms/200795>\
**Category:** Support\
**Created:** [2021 年8 月 18 日 05:04 UTC](https://meta.discourse.org/t/anyone-use-elasticsearch-to-integrate-search-with-wordpress-or-other-cms/200795 "2021-08-18T05:04:36Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

作者： ![Seal](https://avatars.discourse-cdn.com/v4/letter/s/e5b9ba/32.png) [@Seal](https://meta.discourse.org/u/Seal)\
发布日期： [2021 年8 月 18 日 05:04 UTC](https://meta.discourse.org/t/anyone-use-elasticsearch-to-integrate-search-with-wordpress-or-other-cms/200795/1 "2021-08-18T05:04:37Z")

</div>

**用例** 我想将 Discourse 和 WordPress 的全文搜索功能整合，以便同时用于 WordPress 搜索框和 Discourse 搜索框。其实我对任何 CMS 都持开放态度，但认为 WordPress 的可能性最大。

**需求** 我希望这里有人在使用 [Elasticsearch](https://www.elastic.co/downloads/) 时，将 Discourse 与 WordPress 或其他 CMS 结合使用。非常希望能看到相关教程。😉 😉

以下是我兄弟（thought-crime-ai）在 Google 上找到的一些参考资料：

> **[GitHub - m2nx/discourse-elasticsearch: discourse plugin to support elasticsearch](https://github.com/m2nx/discourse-elasticsearch)**
>
> discourse plugin to support elasticsearch

这个仓库已有两年历史，看起来应该仍然可用。我可能会尝试一下。不过，我仍然需要集成 WordPress 的 Elasticsearch。

> **[GitHub - discourse/elasticsearch-aws: Elasticsearch Docker image with aws plugins...](https://github.com/discourse/elasticsearch-aws)**
>
> Elasticsearch Docker image with aws plugins installed

由 Discourse 维护，包含带有 AWS 插件的 Elasticsearch 镜像……Discourse 是如何使用它的呢？也许是为大型托管客户准备的？很可能如此。

> **[Discourse and ElasticSearch](https://discuss.elastic.co/t/discourse-and-elasticsearch/149131)**
>
> I want to use ElasticSearch replacing Discourse builtin search. The platform that this forum is using. It needs to be a plugin, no core code modification. Is there anyone here who can do that or is it not possible? If anyone can do that, please...

_哈哈_ [Elastic.co](http://Elastic.co) 自己就在用 Discourse……但却没有任何关于如何在 Discourse 中使用 Elasticsearch 的教程。

> **[Configure Search Indexes - Magento 2 Elastic Search Ultimate Extension User...](https://mirasvit.com/docs/module-search-elastic-ultimate/current/module-search/current/indexes/index#wordpress)**
>
> Wordpress Blog Index can be created at System -\> Search Management -\> Search Indexes grid. Read more here about adding new index. | Configure Search Indexes Search Indexes are the most important part of your search subsystem. The purpose of storing...

这是一个用于 Magento2 的 Elasticsearch 扩展/插件，它允许 Elasticsearch 对 WordPress 进行索引。查看上述手册，似乎 Magento2 只需获取 WordPress 的数据库凭据，将 wp\_posts 表与 Magento2 数据一起索引，而该扩展负责处理路由。

— 编辑补充 —

> <https://stackoverflow.com/questions/34522457/elasticsearch-for-indexing-multiple-databases>

以下是如何在单个 ES 索引中存储多个数据库的方法。

---

_[View the full topic](https://meta.discourse.org/t/anyone-use-elasticsearch-to-integrate-search-with-wordpress-or-other-cms/200795)._
