# Add site setting to default search results sort by latest post instead of relevance

**URL:** <https://meta.discourse.org/t/add-site-setting-to-default-search-results-sort-by-latest-post-instead-of-relevance/140294>\
**Category:** Feature\
**Tags:** search, completed\
**Created:** [January 31, 2020, 11:47am UTC](https://meta.discourse.org/t/add-site-setting-to-default-search-results-sort-by-latest-post-instead-of-relevance/140294 "2020-01-31T11:47:53Z")\
**Posts on this page:** 1\
**Showing post:** 6

<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:** [July 29, 2020, 6:32am UTC](https://meta.discourse.org/t/add-site-setting-to-default-search-results-sort-by-latest-post-instead-of-relevance/140294/6 "2020-07-29T06:32:54Z")

</div>

> [@Omar\_Shehata](#):
>
> 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.

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)

---

_[View the full topic](https://meta.discourse.org/t/add-site-setting-to-default-search-results-sort-by-latest-post-instead-of-relevance/140294)._
