Ordering search results by total number of likes in topic


(Csaba Pinter) #1

The current operation of “Most Liked” ordering in search is like this:

  1. In topic A, there are N liked replies, each getting M likes (total N*M likes)
  2. In the search result page topic A’s title appears N times, and each item in the result points to the individual replies

Instead, we are looking for an option to see the following behavior in case the condition described in 1 applies:

  1. In the search result page every topic appears maximum once, ordered by the total number of likes in that topic, including the original post and the replies, which is in case of topic A is N*M. The link of the item in the search result page points to the original post in the topic (i.e. the whole topic).

I hope I was unambiguous. Would this be possible? Thanks!


(Csaba Pinter) #2

Can somebody please answer? Thank you!


(Jeff Atwood) #3

This would require a major rewrite of the way search works. I’d estimate this would take a week of time for an engineer on our team who has been working with Discourse for years. For someone on the outside, who is not already intimately familiar with Discourse, probably more like 3 or 4 weeks of engineering time.


(Csaba Pinter) #4

Thanks a lot for the answer!

Understood, so this is not easily available. If enough people request this, and you decide to go for it, then we’d be very happy to have this feature. Otherwise I don’t think we have the capacity to work 3-4 weeks on this feature ourselves. Thanks again!


(Christoph) #5

What you are asking for is basically a “search for topics” feature, while currently search is searching for posts, right?


(Andrey Fedorov) #6

I’d say it’s more “search for posts but sort the results by topics”.


(Csaba Pinter) #7

In the sense that we’d like to see a topic once in the results, yes. Thanks!