# Discourse 的搜索坏了吗？它返回的是“相似”/“部分”匹配而不是“精确”匹配

**URL:** <https://meta.discourse.org/t/discourses-search-broken-it-is-returning-similar-partial-matches-rather-than-exact-matches/394348>\
**Category:** Support\
**Tags:** search, ai\
**Created:** [2026年一月26日 15:13 UTC](https://meta.discourse.org/t/discourses-search-broken-it-is-returning-similar-partial-matches-rather-than-exact-matches/394348 "2026-01-26T15:13:03Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)\
**Post date:** [2026年一月26日 21:55 UTC](https://meta.discourse.org/t/discourses-search-broken-it-is-returning-similar-partial-matches-rather-than-exact-matches/394348/10 "2026-01-26T21:55:22Z")

</div>

> [@emyoulation](#):
>
> > [@awesomerobot](#):
> >
> > 如果匹配项很少，我们会扩展搜索以包含语义人工智能结果，这就是您在 Meta 上看到部分匹配的原因。
> 
> 这可能是一种合理的后备行为。但它应该报告很少（或没有）精确匹配的结束，并清楚地指示语义人工智能结果的开始。

> [@RGJ](#):
>
> 它有点那样做。

> [@emyoulation](#):
>
> 奇怪。这在我们的网站上没有发生……在我这里的测试中也没有发生

是的，当全文搜索中没有结果时，我们会自动扩展搜索，如上所述。

可能让大家感到困惑的是，我们开始对标题快速搜索也这样做，当搜索结果少于 3 个时，但我们在那里没有任何指示表明额外的结果来自语义搜索，因为我们发现它太小了，无法添加任何指示。

我们的折衷方案是向每个结果添加 `ai-search-result`，这样站点可以根据需要通过我们的主题设置功能选择以不同的方式设置这些结果的主题或添加任何必要的指示。

 ![image](https://global.discourse-cdn.com/meta/original/4X/1/1/2/11227e50ec0e085160414462ae6548e5bfd963fa.png)

我们的理由是，扩展搜索可以自动覆盖很多情况，例如用另一种语言搜索（我们的语义搜索是多语言的）、拼写错误、同义词等。

---

_[View the full topic](https://meta.discourse.org/t/discourses-search-broken-it-is-returning-similar-partial-matches-rather-than-exact-matches/394348)._
