Is there a way to change the search results default sort to list the results by most recent post first (LATEST POST) instead of RELEVANCE?
Thank you.
Is there a way to change the search results default sort to list the results by most recent post first (LATEST POST) instead of RELEVANCE?
Thank you.
Currently no, see a related discussion on this Searching topic by user only uses different sort order
Still looking for a way to set the default search results to sort by latest post instead of relevance. If anyone knows a way to do this please let me know. Thank you.
I would like to add that it would be nice to have the option to make the search results default to “Latest”. In our community, posts within a year or two are a lot more useful since a lot has changed in the last ~4 years, so those 4+ year old posts contain a lot of outdated information.
If you have categories where the information ages out why not have your staff curate them, or set auto deletion?
Sorting by latest also otherwise risks losing visibility of your most valuable content.
Have you seen the search prefer recent posts if you enable this and tune search_recent_posts_size to have about the number of posts you had in the last year it would prioritize these recent searches first.
We don’t have a site setting that forces a site into latest mode at the moment, I am not categorically against this being a site admin pref, but our usual way around it is simply to add the letter l to the end of searches to get this behavior.
Technically a theme component could achieve this kind of modification (by silently adding the l client side)
We have posts going back many years because the information is still valuable if you are looking for it. We also we have similar content repeating each year and sometimes each month or each week and it would be very helpful to have the most recent content listed first and let the user switch to most relevant if they want to. For me as admin, I have to switch to latest posts every time I do a search because it always brings up older content I am not looking for.
I was not aware of “search prefer recent post” and I will give that a try. But ultimately if there was a way to default to latest posts that would be great.
Thanks.
Follow up… I tried the “search prefer recent post” and it does help because it is bringing up more recent posts but unfortunately it does not list the posts in chronological order so it is a little confusing when looking at the results. Adding “l” to the end of the search criteria seems to give me the same results as if I chose “Latest” but it still says “Relevance” in the “Sort by” pull down menu so it’s a little confusing or misleading to the user because the results not by relevance and it would seem that adding the character makes it impossible for the user to actually search by relevance. All these suggestions are definitely helpful and I very much appreciate you folks taking the time to address my needs. If you end up adding the pref to default to other search options please let us know
Understand there is a concern that
Sorting by latest also otherwise risks losing visibility of your most valuable content
but it is a risk I am willing to assume based on the nature of my content and the needs of my users. Finally, I want to thank you guys again for an amazing product. I love Discourse.
Hello,
In my community there are post from 10 years ago… (Even when the discourse didn’t even exist)…
And i would like my user to find the latest conversation first… not conversation from 5 or 10 years ago.
And of course, they have the option to choose “RELEVANCE” if they want to see “most valuable content”. 
I agree. I am still hoping the gods of Discourse decide to allow an administrator option to default all members to most recent posts first and let the individual users change it if they want most relevant.
Just as a reminder, you can already do this by either…
l (lowercase L) to your search termor
Jeff,
You are a god in my eyes. Let me just make that clear first. I love discourse.
I only have about 1000 user accounts and probably 1500 total users but I will never get them to remember to do that unless there is a big note next to the search icon that says to do it. Half of them will still think it is showing by relevance because it says that in the pull down even if it is giving results by latest when using the “l”. If you guys ever add it as an option that will be fantastic. Until then I will just remain hopeful 
Thank you,
Scot
多年后,我只是想为这项功能再投一票。让用户进入高级搜索来查找最近的(在我们看来是相关的),或者说服老木匠在搜索查询中添加随机字母将无济于事。也许可以将优先级/排序下拉菜单添加到非高级搜索模式中,这样用户就能更清楚地知道如何在不进入高级搜索的情况下更改它。
复活。非常希望有这个选项。我们论坛上的帖子本质上是按时间排序的。例如,两周前创建的主题可能太旧了,因为它围绕着时事。默认设置为“相关性”并没有多大帮助。希望管理员能有此选项。
我也是,我很希望有这个选项。管理员们,请听听我们的声音。 ![]()
用户总是必须接受强制性的默认设置(为了“相关性”),然后点击框选择“最近”。
最大的问题是大多数用户“不会这样做”。
他们只认为显示出来的就是最新的。
真的很难过没有选项来显示最新的结果。
我刚刚关闭了几个类似的功能请求,以便将讨论集中在这里,但我觉得这个请求值得交叉发布:
“relevance”是什么意思?我的意思是它是如何计算的……按相同单词、按标题加权,还是其他什么?
多年来一直想要此功能,但任何关于站点设置的请求都石沉大海。普通用户无法期望他们会使用过滤功能,尽管听起来有些傻。需要有一个默认此选项的选项。
你们是想告诉我搜索功能无法默认按最新帖子排序,而是按最旧帖子排序吗?从逻辑上讲,这应该是默认设置!谁想在论坛搜索结果的顶部看到 3 年前的帖子?
我能聘请一名开发人员来硬编码一些东西,让我的搜索结果实际显示最新内容,这样对我的会员来说才有用,而不是浪费他们的时间吗?
我们必须将这些 3 年前的帖子从搜索结果中移除。内容不再相关,这违背了搜索的目的。我们论坛中唯一相关的结果是最新帖子。
这里的解决方案是什么?
使用下拉菜单排序或高级搜索不是一个选项。我的会员没有那么精通。
我认为添加站点设置仍然受欢迎,但目前不在我们的列表中。不过,我将把这个主题标记为 pr-welcome,以更清楚地表明我们愿意添加它。
您可以尝试使用现有功能的一种方法是配置类别,使其在一段时间后(少于三年)自动关闭主题。

在相关性搜索中,已关闭主题的权重低于已打开主题(有关最近的讨论,请参见此处)。