# 搜索“未置顶”主题返回意外结果

**URL:** <https://meta.discourse.org/t/search-for-topics-that-are-not-pinned-returns-unexpected-results/150855>\
**Category:** Bug\
**Created:** [2020年五月8日 19:31 UTC](https://meta.discourse.org/t/search-for-topics-that-are-not-pinned-returns-unexpected-results/150855 "2020-05-08T19:31:12Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![lee-dohm](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lee-dohm/32/113511_2.png) [@lee-dohm](https://meta.discourse.org/u/lee-dohm)\
**Post date:** [2020年五月8日 19:31 UTC](https://meta.discourse.org/t/search-for-topics-that-are-not-pinned-returns-unexpected-results/150855/1 "2020-05-08T19:31:12Z")

</div>

## 复现步骤

1. 访问 [https://meta.discourse.org](https://meta.discourse.org)
2. 点击“搜索”按钮
3. 点击“选项”链接
4. 在“高级搜索”侧边栏的“仅返回主题/帖子…

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [2020年五月8日 22:07 UTC](https://meta.discourse.org/t/search-for-topics-that-are-not-pinned-returns-unexpected-results/150855/2 "2020-05-08T22:07:27Z")

</div>

好的，也许@sam 可以下周分配这个任务？

---

<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:** [2020年五月11日 02:41 UTC](https://meta.discourse.org/t/search-for-topics-that-are-not-pinned-returns-unexpected-results/150855/3 "2020-05-11T02:41:56Z")

</div>

我需要 @codinghorror 在这里帮忙修改文案。

> <https://github.com/discourse/discourse/blob/bb4e8899c41889f7316e512d6ed89a3847fa655b/config/locales/client.en.yml#L1994-L1994>

应该是：

“是置顶主题，但未为我置顶”

“是我已取消置顶的置顶主题”

不太确定……也许我们干脆从 UI 中移除这个选项，因为向用户解释起来太让人困惑了。

@lee-dohm 你能详细说明一下为什么需要一个特殊的搜索运算符吗？一般来说，99.99% 的主题都不是置顶的，从搜索结果中排除置顶主题似乎是一个非常极端的边缘情况。（而且 in:pinned 已经可以正常工作了）

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [2020年五月11日 03:03 UTC](https://meta.discourse.org/t/search-for-topics-that-are-not-pinned-returns-unexpected-results/150855/4 "2020-05-11T03:03:18Z")

</div>

> [@sam](#):
>
> 也许我们干脆从用户界面中移除这个选项，因为向用户解释起来太令人困惑了。

只保留“置顶”即可。当你搜索“置顶但非为我置顶”时，我认为没人会在意这个细节。关键只在于该话题是否被置顶。它是否“为我个人”置顶并不重要。为什么要提供一个令人困惑的选项呢……

---

<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:** [2020年五月11日 03:06 UTC](https://meta.discourse.org/t/search-for-topics-that-are-not-pinned-returns-unexpected-results/150855/5 "2020-05-11T03:06:32Z")

</div>

好的……@vinothkannans 能否从界面中移除“未固定”字样，并清理相关翻译等内容。

---

<div class="post-metadata">

**Author:** ![lee-dohm](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lee-dohm/32/113511_2.png) [@lee-dohm](https://meta.discourse.org/u/lee-dohm)\
**Post date:** [2020年五月11日 15:43 UTC](https://meta.discourse.org/t/search-for-topics-that-are-not-pinned-returns-unexpected-results/150855/7 "2020-05-11T15:43:11Z")

</div>

> [@sam](#):
>
> 通常情况下，99.99% 的主题都不是置顶的，将置顶主题从搜索结果中移除似乎是一个非常极端的边缘情况。

我在搜索没有回复的主题，而大部分顶部结果都是“关于 X 分类”的置顶主题。由于我的意图是查找人类用户未回答的主题，而且我没有看到一种简单的方法来排除“系统用户”，所以我推测“非置顶”是最接近我需求的选项。在 Meta 上对类似搜索进行进一步测试后，我发现“about”是一个停用词，我的测试搜索在顶部没有显示这些或任何置顶主题。因此，经过进一步调查，我的功能请求很可能没有必要 👍

---

<div class="post-metadata">

**Author:** ![vinothkannans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinothkannans/32/86465_2.png) [@vinothkannans](https://meta.discourse.org/u/vinothkannans)\
**Post date:** [2020年五月28日 19:18 UTC](https://meta.discourse.org/t/search-for-topics-that-are-not-pinned-returns-unexpected-results/150855/8 "2020-05-28T19:18:45Z")

</div>

过滤器已在以下提交中移除

> <https://github.com/discourse/discourse/commit/ce1491e830293891ce0b12bd2a203e6dab31bd9f>

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [2020年五月28日 19:24 UTC](https://meta.discourse.org/t/search-for-topics-that-are-not-pinned-returns-unexpected-results/150855/9 "2020-05-28T19:24:34Z")

</div>


