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

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.

6 Mi Piace

Currently no, see a related discussion on this Searching topic by user only uses different sort order

3 Mi Piace

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.

2 Mi Piace

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)

3 Mi Piace

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.

1 Mi Piace

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 :slight_smile: 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.

2 Mi Piace

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”. :slight_smile:

1 Mi Piace

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.

1 Mi Piace

Just as a reminder, you can already do this by either…

adding l (lowercase L) to your search term

or

selecting “order by latest” in the advanced search

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 :slight_smile:

Thank you,
Scot

2 Mi Piace

Aggiungo solo anni dopo un altro voto per questa funzionalità. Far entrare gli utenti nell’avanzato per trovare il recente (che nel nostro mondo è rilevante), o convincere i vecchi falegnami ad aggiungere lettere casuali alla query di ricerca non aiuterà. Forse aggiungere il menu a discesa di priorità/ordinamento alla modale di ricerca non avanzata in modo che sia più ovvio agli utenti come cambiarlo senza entrare nella ricerca avanzata.

1 Mi Piace

Riportare in vita. Mi piacerebbe questa opzione. I post nel nostro forum sono, per loro natura, orientati al tempo. Ad esempio, un argomento creato due settimane fa è probabilmente troppo vecchio, poiché ruota attorno a eventi attuali. L’impostazione predefinita su “rilevanza” non è molto utile. Mi piacerebbe un’opzione per gli amministratori.

3 Mi Piace

Anche io, mi piacerebbe avere questa opzione. Per favore moderatori, ascoltateci. :wink:

Gli utenti devono sempre accettare l’impostazione predefinita imposta (per “rilevanza”) e fare clic sulla casella per scegliere “più recenti”.

Il grosso problema è che la maggior parte degli utenti “non lo fa”.

E pensano solo che ciò che esce sia l’ultimo.

Davvero triste non avere l’opzione per mostrare i risultati più recenti.

1 Mi Piace

Ho appena chiuso un paio di richieste di funzionalità simili per concentrare la discussione qui, ma questa è sembrata rilevante da pubblicare anche qui:

1 Mi Piace

Cosa significa rilevanza? Voglio dire, come viene calcolata… per parola uguale, pesata dall’intestazione, qualcos’altro?

2 Mi Piace

Desideravo questa funzionalità da anni, ma ogni richiesta di un’impostazione del sito è caduta nel vuoto. I normali utenti non possono essere tenuti a utilizzare le funzioni di filtro, per quanto sciocco possa sembrare. Deve esserci un’opzione per impostarla come predefinita.

Mi state dicendo che la funzione di ricerca è incapace di impostare come predefinita la visualizzazione dei post più recenti invece di quelli più vecchi? Logicamente, sembra che questa dovrebbe essere l’impostazione predefinita! Chi vuole che i post di 3 anni fa appaiano al primo posto nei risultati di ricerca del forum?

Posso assumere uno sviluppatore per codificare qualcosa in modo che i miei risultati di ricerca mostrino effettivamente i contenuti più recenti, in modo che sia utile ai miei membri e non faccia perdere loro tempo?

Dobbiamo rimuovere questi post di 3 anni fa dai nostri risultati di ricerca. Il contenuto non è più rilevante e vanifica lo scopo della ricerca. Gli unici risultati pertinenti nel nostro forum sono i post più recenti.

Qual è la soluzione qui?

L’uso di menu a discesa per ordinare le cose o la ricerca avanzata non è un’opzione. I nostri membri non sono così sofisticati.

Penso che l’aggiunta di un’impostazione del sito sia ancora benvenuta, ma al momento non è nella nostra lista. Segnalerò comunque questo argomento come pr-welcome per indicare più chiaramente che siamo aperti ad aggiungerlo.

Un approccio che potresti provare con le funzionalità esistenti oggi è configurare le categorie per chiudere automaticamente gli argomenti dopo un certo periodo di tempo (inferiore a 3 anni).

Screenshot 2023-07-07 at 2.15.35 PM

Gli argomenti chiusi hanno un peso inferiore rispetto a quelli aperti nella ricerca di pertinenza (vedi alcune discussioni recenti a riguardo qui).

2 Mi Piace