Add "orderdesc" modification to advanced search

AI 生成的摘要

Users are discussing the addition of an orderdesc modifier to Discourse’s advanced search to allow descending order for any sort field (e.g., orderdesc:views, orderdesc:likes). meglio proposes this as a universal solution for reverse sorting, noting potential use cases like identifying low-engagement content or improving SEO. riking suggests using order:-views or order:-latest syntax instead. sam expresses skepticism about the need for orderdesc:likes or orderdesc:views, but is open to adding order:earliest for rare cases. meglio counters that unexpected use cases may arise, advocating for a consistent operator. chadwhitacre supports the feature for managing forum “inbox” workflows by sorting posts from least to most recent. riking offers the Unanswered filter as an alternative and mentions a PR adding “Oldest Update” sorting, seeking better naming. Canapin shares personal experience searching within topics and notes confusion between “Latest Post” and “Latest Topic” sorting, suggesting clearer chronological options (ascending/descending) would be helpful — even if used mostly for fun. The thread highlights demand for flexible, intuitive sorting controls beyond the current defaults.

While we can choose which field to order by when searching in advanced mode:

  • order:views
  • order:latest
  • order:likes

… we cannot choose whether we want to order ascending or descending.

Adding orderdesc modifier would easily make it possible:

  • orderdesc:views
  • orderdesc:latest
  • orderdesc:likes

order:likes is already descending, right?

So what you want is “the opposite of the normal order that this term means”.

Not sure about this, but… How about order:-views to start at 0 and go up, while order:-latest starts at the oldest?

struggling to think of use cases for orderdesc:likes or orderdesc:views, though I am open to possibly adding order:earliest (its quite rare to need though)

2 个赞

We should find a way to allow for opposite ordering for any ordering type (kind of a universal way of doing it), then easier to remember and use.

You never know what one could come up with :slight_smile:

I’d use orderdesk:likes to identify which type of material is the worst in terms of people likes and not create similar topics, or not include them in the lists.

orderdesc:views might possibly indicate topics that need some more useful information to get more attractions from organic search.

I think there might be more use-cases I can’t think of, why not just make it possible with a single operator.

我希望实现此功能,以支持处理论坛流量的“收件箱”用例:我需要一种搜索方式,能够按“最后回复时间最早”进行排序(以便我可以按顺序处理待回复的帖子队列),但据我所知,目前只能按“最后回复时间最新”进行排序。

您可能可以考虑使用“未回答”筛选器:/latest?max_posts=1。

不过,我也提交了一个拉取请求(PR)来添加此排序选项:

欢迎大家对下拉菜单中的名称提出建议,我并不是很喜欢“最新更新时间”这个说法。

2 个赞

我一直在寻找一种在主题内搜索时按最旧(升序时间顺序,添加这些术语以供将来在元数据上搜索……)排序结果的方法。

我找不到“按最旧帖子排序”(只有**最新帖子),但我确实尝试了“按最新主题**排序”,它确实有效。

我认为我理解其中的逻辑,但在这个特定情况下,这些词语有点违反直觉。

对我来说,可以选择升序/降序时间顺序,这将是一个很好的补充,我有时会尝试这样做,并且在允许这样做的其他论坛上也是这样做的。虽然通常更多是为了好玩,而不是寻找特定和有趣的信息。

此外,我想知道人们使用“按最新排序”的频率,与默认的“相关性”相比。我经常在许多论坛上使用“按最新排序”。