搜索功能改进

When users search “bear” in a search function, I suppose that “bear” in the title used to be on the top in search results.
However, now article that includes many “bear” not in the title but in main text is on the top.

I want to let the search function retrieve only from the title.

How can I achieve this?

Add in:title to your search terms to limit searches only to topic titles.

谢谢。但搜索结果顺序不是我预期的。你知道搜索结果的排序条件吗?

我不确定您期望的排序顺序是什么,但您可以通过下拉菜单进行更改。

好的,让我解释一下我是如何使用我的 Discourse 的。

例如,当我在 Google 上搜索“discourse”时,“discourse”应该排在首位。
而“discourse meta ABC”不应排在首位,因为我输入的只是“discourse”。

目前我将我的 Discourse 用作词典。当用户搜索“bear”时,“bear”的搜索结果不知为何却排在底部。
相反,像“bear up”、“bear the brunt of”和“bar out”这样的习语却排在了“bear”的前面。

因此,我想知道 Discourse 是如何管理搜索结果排序的。

Discourse 首页本身并不比其他内容更具相关性。Google 之所以能做到它现在那样,是因为它考虑了整个互联网上的所有链接。Discourse 并没有构建互联网的地图,而是在进行文本搜索。它无法区分单词“bear”的所有不同用法,也无法忽略习语。而且,当您将搜索限制为仅标题时,可供参考的信息就少了很多——它可以依据搜索词在整个帖子中出现的次数来判断“相关性”,但当搜索仅限于标题时,许多标题中搜索词只出现一次,因此它们的排名会相同。

不过,“最多浏览”排序或许会有所帮助。

好的,现在我明白了 Discourse 是如何控制搜索结果顺序的。感谢您的解释!