# Discourse 搜索是否能免疫拼写错误，以及它如何处理多个词语？

**URL:** https://meta.discourse.org/t/is-discourse-search-immune-to-typos-and-how-does-it-work-with-several-words/294609
**Category:** Support
**Tags:** search
**Created:** [2024 年2 月 7 日 22:34 UTC](https://meta.discourse.org/t/is-discourse-search-immune-to-typos-and-how-does-it-work-with-several-words/294609 "2024-02-07T22:34:17Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![jserre](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jserre/32/358655_2.png) [@jserre](https://meta.discourse.org/u/jserre)
#### Post date: [2024 年2 月 7 日 22:34 UTC](https://meta.discourse.org/t/is-discourse-search-immune-to-typos-and-how-does-it-work-with-several-words/294609/1 "2024-02-07T22:34:17Z")

</div>

例如，DC 搜索引擎会找到“John Max Dolittle”与以下查询吗：

- hohn \<== 拼写错误
- john dolittle \<== 缺少字符串
- john mx doelitle \<== 模糊匹配

我收到了这个帖子的提醒：[Discourse search is awfully unsmart!](https://meta.discourse.org/t/discourse-search-is-awfully-unsmart/55551)  
但它相当旧（2017 年）。此后情况有所改善吗？

看起来 Algolia 插件不再是官方的了？

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [2024 年2 月 8 日 00:45 UTC](https://meta.discourse.org/t/is-discourse-search-immune-to-typos-and-how-does-it-work-with-several-words/294609/2 "2024-02-08T00:45:00Z")

</div>

基于AI的搜索对拼写错误免疫，但速度不快：

 ![image](https://global.discourse-cdn.com/meta/original/4X/3/f/e/3fec7a1b586a8fecc5a22715dfdff22d7d9a1dec.png)

但是，所使用的技术意味着它的速度会稍慢一些，因为我们需要在使用LLM扩展术语，然后再查找相似性。

通用搜索词干提取使用snowball：[Snowball Stemmer - NLP - GeeksforGeeks](https://www.geeksforgeeks.org/snowball-stemmer-nlp/)

它会偶然捕获一些拼写错误，但这确实是偶然的，我们没有使用metaphone或其他复杂的拼写错误消除技术，Postgres中没有内置简单的功能来实现这一点。

Algolia插件仍然得到支持并且是官方的：[Discourse Algolia Search](https://meta.discourse.org/t/discourse-algolia-search/73517)

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [2024 年2 月 8 日 00:50 UTC](https://meta.discourse.org/t/is-discourse-search-immune-to-typos-and-how-does-it-work-with-several-words/294609/3 "2024-02-08T00:50:24Z")

</div>

> [@jserre](#):
>
> Algolia 插件似乎不再是官方的了？

供参考，Algolia 搜索插件仍然是官方的 👍

> [@Discourse Algolia Search](https://meta.discourse.org/t/discourse-algolia-search/73517):
>
> discourse2Summary Discourse Algolia Search integrates Algolia with Discourse search.hammer_and_wrenchRepository Link [https://github.com/discourse/discourse-algolia](https://github.com/discourse/discourse-algolia)open_bookInstall Guide [How to install plugins in Discourse](https://meta.discourse.org/t/install-plugins-in-discourse/19157)Features I’ve recently created a plugin that indexes topics, posts, users and tags with [Algolia](https://algolia.com/) and combines them into a multi-category autocomplete search. Here’s a GIF of how it works: You can find the Github repository, …

（如果您由我们托管，它可在企业版套餐中使用）
