# Prioritizing content more effectively in search

**URL:** https://meta.discourse.org/t/prioritizing-content-more-effectively-in-search/63010
**Category:** Feature
**Created:** [2017年五月19日 13:15 UTC](https://meta.discourse.org/t/prioritizing-content-more-effectively-in-search/63010 "2017-05-19T13:15:40Z")
**Posts on this page:** 20
**Page:** 1

<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: [2017年五月19日 13:15 UTC](https://meta.discourse.org/t/prioritizing-content-more-effectively-in-search/63010/1 "2017-05-19T13:15:40Z")

</div>

When I search for the word emoji I get:

 ![](https://global.discourse-cdn.com/meta/original/3X/5/f/5f96c9862d20773cdf446a60b7bf72be982739bf.png)

This is pretty bad cause it really is not providing much value to me. I think a smarter algorithm for prioritizing could do a much better job.

In particular, here are some changes I would suggest to fix up this instance:

1. Allow admins to customize search priority by category. Allow each category to specify some sort of “extra weight” for a particular category. So #howto, for example could be much higher priority on meta.

2. Allow admins to “de-prioritize” old closed topics in a category. Old closed bugs should always show up at the end of the list.

3. Allow moderators to specify a “high priority” time window. For example, I would always like the first **2** results of the search to return hits from the last 14 days if available.

This has been discussed a lot, in particular here:

> [@Should search prioritize recent topics over older topics?](https://meta.discourse.org/t/should-search-prioritize-recent-topics-over-older-topics/19099/57):
>
> I do think there’s a case to be made that more recent topics should show above older ones, but given that the discussion here is so fragmented, and the underlying/original cause…

I get around this issue by adding `order:latest` but most end-users would have no clue about that.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2017年五月19日 14:29 UTC](https://meta.discourse.org/t/prioritizing-content-more-effectively-in-search/63010/2 "2017-05-19T14:29:27Z")

</div>

> [@sam](#):
>
> Allow admins to “de-prioritize” old closed topics in a category. Old closed bugs should always show up at the end of the list.

Doesn’t an implicit focus on `order:latest` accomplish this anyway?

---

<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: [2017年五月19日 14:35 UTC](https://meta.discourse.org/t/prioritizing-content-more-effectively-in-search/63010/3 "2017-05-19T14:35:48Z")

</div>

Perhaps, it depends how far we go though. There are ancient results we always want to show, so they need a way to opt out.

There may even be ancient old closed results we always want first like `https://meta.discourse.org/t/what-do-user-trust-levels-do/4924` which number 15 here: [Search results for 'trust level' - Discourse Meta](https://meta.discourse.org/search?q=trust%20level) pushing it even further down would worry me.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2017年五月19日 22:43 UTC](https://meta.discourse.org/t/prioritizing-content-more-effectively-in-search/63010/4 "2017-05-19T22:43:37Z")

</div>

This feels a bit.. imagineer-y to me. Ultimately you would be rebuilding Google’s PageRank, that is, the topics that get the most **backlinks** (from reputable, non spammy sources..) get elevated in the search results.

Because that’s sure as heck what happens when you search for “emoji” in Google.

---

<div class="post-metadata">

### Author: ![meglio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/meglio/32/71444_2.png) [@meglio](https://meta.discourse.org/u/meglio)
#### Post date: [2017年五月20日 01:47 UTC](https://meta.discourse.org/t/prioritizing-content-more-effectively-in-search/63010/5 "2017-05-20T01:47:25Z")

</div>

I support adding weights to categories.

As a very minimum, I’d decrease the weight of a “chill” category - its entries bother new users quite often.

---

<div class="post-metadata">

### Author: ![tophee](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tophee/32/73406_2.png) [@tophee](https://meta.discourse.org/u/tophee)
#### Post date: [2017年五月20日 08:26 UTC](https://meta.discourse.org/t/prioritizing-content-more-effectively-in-search/63010/6 "2017-05-20T08:26:48Z")

</div>

How about the obvious:

- incoming links
- bookmarks
- likes
- views

Or are these already being weighted in the existing algorithm?

Sure, finding the perfect formula might be a bit much imagineering, but I agree that the search results could be improved.

Would the new algorithm be something that users can turn off in advanced search in order to exit the collective search bubble?

```
[] Turn off SaffronRank

```

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [2017年五月20日 13:35 UTC](https://meta.discourse.org/t/prioritizing-content-more-effectively-in-search/63010/7 "2017-05-20T13:35:28Z")

</div>

Nothing personal Sam, but to me “search for the word emoji … not providing much value” begs the question, “what exactly would you consider to be of value?”

Kind of depends on what exactly one is looking for, no?  
IMHO successful results depends greatly on ones search foo, good UI, and good search features.

As far as I’m concerned as a somewhat veteran user as opposed to a newbie, Discourse search works great. I can “sort by”, go to advanced search, and eg. search for  
emoji large  
emoji fontawesome  
emoji tone  
emoji email  
and get more fine tuned sets of results.

I have the feeling what this discussion is more about is how to have search have something like Google “ads” where a site could promote certain topics for searches that use certain “keywords”

As a rough analogy, If I go to a restaurant wanting roast beef rare, I ask for roast beef rare. If I go to a restaurant knowing I want seafood, but I am undecided about what seafood exactly, I ask the waiter for his recommendation.

I think having something like an “Admin Like” could work, but I’m not sure how to go about tying it to specific words.

---

<div class="post-metadata">

### Author: ![wesochuck](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/wesochuck/32/108706_2.png) [@wesochuck](https://meta.discourse.org/u/wesochuck)
#### Post date: [2017年五月20日 13:58 UTC](https://meta.discourse.org/t/prioritizing-content-more-effectively-in-search/63010/8 "2017-05-20T13:58:32Z")

</div>

> [@sam](#):
>
> Allow admins to customize search priority by category. Allow each category to specify some sort of “extra weight” for a particular category. So #howto, for example could be much higher priority on meta.

We have a similar situation with our Discourse instance. We use it for our Knowledge Base but also for our forum.

Just this week I had someone struggling with something and they were looking at a two year old post on the topic rather than our “official” KB article on the same subject.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2017年五月20日 18:19 UTC](https://meta.discourse.org/t/prioritizing-content-more-effectively-in-search/63010/9 "2017-05-20T18:19:14Z")

</div>

I can support this if _adding search weights to categories is super super easy_, otherwise it feels like the wrong approach.

We need to build Google’s PageRank properly if we are going to bother at all, we definitely have the backlink data (internally) as we track all links between topics.

---

<div class="post-metadata">

### Author: ![erlend\_sh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/erlend_sh/32/119475_2.png) [@erlend\_sh](https://meta.discourse.org/u/erlend_sh)
#### Post date: [2017年五月24日 20:59 UTC](https://meta.discourse.org/t/prioritizing-content-more-effectively-in-search/63010/10 "2017-05-24T20:59:30Z")

</div>

Related:

> [@Use last outgoing link in closed topic as forwarder](https://meta.discourse.org/t/use-last-outgoing-link-in-closed-topic-as-forwarder/33683):
>
> Please bear with me as I don’t know exactly what I’m suggesting yet, but I need help fleshing out this idea. If I search “wordpress and discourse on same server”, I get [this result](https://meta.discourse.org/search?q=wordpress%20and%20discourse%20on%20same%20server): 4 closed topics. All technically good matches as far as the search algorithm is concerned, and they will take me to the How-to I need in the end because they all link to it. However, 4 closed and near-identical topics are hardly ideal as top results. What you really want is to send the searching user dir…

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2017年十二月10日 11:33 UTC](https://meta.discourse.org/t/prioritizing-content-more-effectively-in-search/63010/14 "2017-12-10T11:33:21Z")

</div>

> [@meglio](#):
>
> adding weights to categories.

This has definitely been discussed internally and seems like the most logical next step. Most of @sam’s complaints seem to be around certain categories (like #howto and #howto:faq ) not showing up higher in results.

Topics with more internal backlinks showing up higher in search results, is also sensible for similar reasons.. but might be harder to do than a blanket category bump that site owners can tweak to taste.

---

<div class="post-metadata">

### Author: ![rizka](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rizka/32/79717_2.png) [@rizka](https://meta.discourse.org/u/rizka)
#### Post date: [2017年十二月10日 12:56 UTC](https://meta.discourse.org/t/prioritizing-content-more-effectively-in-search/63010/15 "2017-12-10T12:56:44Z")

</div>

At our hockey forum we have a category for live commentary of matches. The threads can gather nearly a thousand posts during a match which lasts less than three hours. (Most comments have from 1 to 10 words.) There are tons of likes and common search terms appear in threads many times. Thus, threads of the live commentary category show up high in search results with most search terms. Afterwards, the threads have some value: you can relive games and sense the emotions of fans by reading a thread. But that is all they have to offer. And most of the time when you are searching, you are certainly not looking for fans’ emotions. This is a little problem for our forum’s search function.

To sum up, sometimes instead of bumping some category up in results, you may want to drag a category down in results.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2017年十二月10日 20:39 UTC](https://meta.discourse.org/t/prioritizing-content-more-effectively-in-search/63010/16 "2017-12-10T20:39:22Z")

</div>

I suggest deleting those chat topics after they are done. Similarly, I question the value of us carrying ancient resolved bug discussions around forever @sam.

A tiny handful of bugs might have relevant discussion years later, but 90% of them are just search land mines we are leaving around that will blow up anyone who happens to land on them.

---

<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: [2017年十二月10日 20:47 UTC](https://meta.discourse.org/t/prioritizing-content-more-effectively-in-search/63010/17 "2017-12-10T20:47:46Z")

</div>

Still I agree with the concept of de-prioritizing a category, I would consider de-prioritizing uncategorized on meta

Agree we can probably delete a bunch of land mines, especially ones that are messing up our top 100 search terms

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2017年十二月10日 20:52 UTC](https://meta.discourse.org/t/prioritizing-content-more-effectively-in-search/63010/18 "2017-12-10T20:52:55Z")

</div>

Not saying deletion is the whole solution either .. but surely you can see how carrying around a bunch of ancient resolved bugs forever and ever is ultimately a bad deal for everyone involved.

---

<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: [2017年十二月10日 20:54 UTC](https://meta.discourse.org/t/prioritizing-content-more-effectively-in-search/63010/19 "2017-12-10T20:54:01Z")

</div>

Totally just it gets super hard to do automatically

The deletionist is fine with deleting 10% good content to get rid of 90% bad

The preservationist is not good with deleting 0.05% good content

And everyone is somewhere on the deletionist/preservationist scale

---

<div class="post-metadata">

### Author: ![Johani](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/johani/32/176920_2.png) [@Johani](https://meta.discourse.org/u/Johani)
#### Post date: [2017年十二月11日 03:23 UTC](https://meta.discourse.org/t/prioritizing-content-more-effectively-in-search/63010/20 "2017-12-11T03:23:14Z")

</div>

While I think things like bug reports and game commentary do lose value over time and become irrelevant, I see no harm in keeping everything as long as it’s clearly labeled.

The idea of an archive might be the perfect balance between deleting and keeping obsolete topics. It gets old topics out of sight but they remain there for any future need (whatever that may be).

Basic concept:

1- Create Archive(s) category  
2- For every category in the forum - bugs / support / lounge etc - create a matching subcategory under Archive(s) automatically.  
3- Add option in wrench menu to move post to archive (filed under correct subcategory automatically)  
4- Remove archived posts from live search results by default  
5- Add option in advanced search options to include Archives

Bonus:  
Add header to archived posts letting readers know they’re in the archives

---

<div class="post-metadata">

### Author: ![mcwumbly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mcwumbly/32/103861_2.png) [@mcwumbly](https://meta.discourse.org/u/mcwumbly)
#### Post date: [2017年十二月11日 03:29 UTC](https://meta.discourse.org/t/prioritizing-content-more-effectively-in-search/63010/21 "2017-12-11T03:29:15Z")

</div>

There’s already the ability to archive topics, so no need for a separate category:

> [@Should old topics be deleted from this forum?](https://meta.discourse.org/t/should-old-topics-be-deleted-from-this-forum/19070/3):
>
> What if instead we just archived out of date topics?
> 
> And made it so that archived topics were hidden from search by default?

---

<div class="post-metadata">

### Author: ![Johani](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/johani/32/176920_2.png) [@Johani](https://meta.discourse.org/u/Johani)
#### Post date: [2017年十二月11日 03:36 UTC](https://meta.discourse.org/t/prioritizing-content-more-effectively-in-search/63010/22 "2017-12-11T03:36:29Z")

</div>

Ha! While typing this I had a feeling this idea was ~~probably~~ most likely mentioned here before with all the brains flowing around in these forums 😁

Oh well, looks like I’m three years late to the party

---

<div class="post-metadata">

### Author: ![rizka](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rizka/32/79717_2.png) [@rizka](https://meta.discourse.org/u/rizka)
#### Post date: [2017年十二月11日 13:00 UTC](https://meta.discourse.org/t/prioritizing-content-more-effectively-in-search/63010/23 "2017-12-11T13:00:44Z")

</div>

> [@codinghorror](#):
>
> I suggest deleting those chat topics after they are done.

I appreciate the fair suggestion, but it’s impossible. We certainly want to offer the option of reading old chats. Just having those threads at the top of search results is too much. Therefore having category weights would be yet another great improvement for us. 👍

[下一頁](https://meta.discourse.org/t/prioritizing-content-more-effectively-in-search/63010.md?page=2)
