# Should search prioritize recent topics over older topics?

**URL:** https://meta.discourse.org/t/should-search-prioritize-recent-topics-over-older-topics/19099
**Category:** Feature
**Created:** [2014年八月20日 16:00 UTC](https://meta.discourse.org/t/should-search-prioritize-recent-topics-over-older-topics/19099 "2014-08-20T16:00:12Z")
**Posts on this page:** 15
**Page:** 3

<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: [2014年八月21日 22:55 UTC](https://meta.discourse.org/t/should-search-prioritize-recent-topics-over-older-topics/19099/44 "2014-08-21T22:55:00Z")

</div>

It works, added it a few months back.

After v1 I intend to polish this and integrate into search UI.

---

<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: [2014年八月21日 23:08 UTC](https://meta.discourse.org/t/should-search-prioritize-recent-topics-over-older-topics/19099/45 "2014-08-21T23:08:48Z")

</div>

> [@cpradio](#):
>
> It just doesn’t stack up to what is expected from a user perspective.

Search rarely if ever does. I dealt with constant complaints about search through the entire history of Stack Overflow and Stack Exchange.

Problem is you are constantly compared with Google, which is of course completely unfair, but that’s the way the world works.

`¯\_(シ)_/¯`

It’s helpful to propose specific detailed improvements like

> Gee, we could prioritize recent topics over ancient ones in search results

or

> Gosh the “SHOW MORE” didn’t appear when it should have

or

> It would be helpful to show the category of the topic in the results

versus

> I typed words and did not get the results I wanted, this sucks, you suck, everything sucks

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [2014年八月21日 23:12 UTC](https://meta.discourse.org/t/should-search-prioritize-recent-topics-over-older-topics/19099/46 "2014-08-21T23:12:28Z")

</div>

> [@codinghorror](#):
>
> Problem is you are constantly compared with Google, which is of course completely unfair, but that’s the way the world works.

I’m not. I’m comparing you to vBulletin 😄 I know no one will compare to Google, it isn’t fair for me to compare you to Google. It is fair for me to compare you to vBulletin, phpBB, etc.

I added details to my responses on why I felt it lacked (every one of them), so I’m not trying to leave you hanging…

---

<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: [2014年八月21日 23:14 UTC](https://meta.discourse.org/t/should-search-prioritize-recent-topics-over-older-topics/19099/47 "2014-08-21T23:14:01Z")

</div>

I really think this is a real estate issue, there is only so much information you can fit into a tiny pop-up, the first and biggest issue is having a full screen version.

---

<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: [2014年八月21日 23:15 UTC](https://meta.discourse.org/t/should-search-prioritize-recent-topics-over-older-topics/19099/48 "2014-08-21T23:15:11Z")

</div>

Remember, this _entire topic_ is based on a bug, namely SHOW MORE did not appear, as documented about 12 times so far… I’d focus on that first. Can you find a repro? Because clearly that happened, and to fix it, we need a repro.

That’s helpful, addressing specific known issues, in digestible detailed chunks, versus “let’s reimagineer everything about search!” which would take months.

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [2014年八月21日 23:16 UTC](https://meta.discourse.org/t/should-search-prioritize-recent-topics-over-older-topics/19099/49 "2014-08-21T23:16:34Z")

</div>

I’m working on it. I am still doing roughly 5 searches every few hours to see if I can find a pattern or recreate it 😄 Trust me, I’m trying 😄

---

<div class="post-metadata">

### Author: ![jaming](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jaming/32/41227_2.png) [@jaming](https://meta.discourse.org/u/jaming)
#### Post date: [2014年八月22日 00:37 UTC](https://meta.discourse.org/t/should-search-prioritize-recent-topics-over-older-topics/19099/50 "2014-08-22T00:37:19Z")

</div>

Hello,

I am not positive if this is a repo of the “show more” bug, but I think it is.  
When I search:

[![](https://global.discourse-cdn.com/meta/original/4X/5/2/9/5298cd50b82899b444632f3bc3e83f60569d9dc9.png) ](https://i.imgur.com/pEAPklQ.png)

I get these results which do not include this thread, and I do not get the “show more” option implying these are the only results. However, when I search:

[![](https://global.discourse-cdn.com/meta/original/4X/5/5/3/55359c3a8f1bff1a64a3c10c9dcf8006ddea48f6.png) ](https://i.imgur.com/lBRsiRw.png)

I am not sure what is supposed to happen here. But I find this behavior odd. Adding search terms should reduce my results–not introduce new ones.

I am purposely not putting the search terms in the body of this post in the hopes that the repo remains consistent.

P. S. Huh, not only, can’t new users upload images, but also, they can’t link to images. That is helpful for when trying to post a bug repo. 😉

---

<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: [2014年八月22日 00:50 UTC](https://meta.discourse.org/t/should-search-prioritize-recent-topics-over-older-topics/19099/51 "2014-08-22T00:50:35Z")

</div>

Yes this looks like a good repro, will try it out on local.

---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [2014年八月22日 06:26 UTC](https://meta.discourse.org/t/should-search-prioritize-recent-topics-over-older-topics/19099/52 "2014-08-22T06:26:11Z")

</div>

> [@cpradio](#):
>
> I’d be happy if entering a search and pressing enter took me there!

+1 I agree with this - being sent to this search results page would make more sense to me than what happens now, which is that you are taken to the first result in the list. If the search results page also had some “advanced search” options that would help those who are looking for more sophisticated search options.

---

<div class="post-metadata">

### Author: ![TechnoBear](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/technobear/32/40546_2.png) [@TechnoBear](https://meta.discourse.org/u/TechnoBear)
#### Post date: [2014年八月22日 14:02 UTC](https://meta.discourse.org/t/should-search-prioritize-recent-topics-over-older-topics/19099/53 "2014-08-22T14:02:32Z")

</div>

[quote=“codinghorror, post:38, topic:19099”]  
I dispute your account,  
[/quote]I can assure you, I’m not given to posting false information and I find the insinuation that I am being untruthful offensive.

[quote=“codinghorror, post:48, topic:19099, full:true”]  
Remember, this _entire topic_ is based on a bug, namely SHOW MORE did not appear, as documented about 12 times so far… I’d focus on that first.  
[/quote]I would have to disagree with your assessment. The topic is based on the fact that a number of us have experienced real difficulty in using Discourse search and would appreciate some improvements.

The “show more” bug emerged in the course of this discussion, and was reported as a bug here:  
[https://meta.discourse.org/t/show-more-not-being-displayed-in-search/19133](https://meta.discourse.org/t/show-more-not-being-displayed-in-search/19133)

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [2014年八月22日 14:10 UTC](https://meta.discourse.org/t/should-search-prioritize-recent-topics-over-older-topics/19099/54 "2014-08-22T14:10:59Z")

</div>

> [@codinghorror](#):
>
> Remember, this entire topic is based on a bug, namely SHOW MORE did not appear, as documented about 12 times so far… I’d focus on that first. Can you find a repro? Because clearly that happened, and to fix it, we need a repro.

> [@TechnoBear](#):
>
> I would have to disagree with your assessment. The topic is based on the fact that a number of us have experienced real difficulty in using Discourse search and would appreciate some improvements.
> 
> The “show more” bug emerged in the course of this discussion, and was reported as a bug here:

I just want to point out that the work @sam has done up to this point for ?search=search\_terms\_here is a big step in showing that the current narrow viewport doesn’t actually show everything!

Every time I find a search that is three items, I then use the ?search=same\_terms and I get a full list! I seem to always get more items when I utilize that method.

Example:

 ![](https://global.discourse-cdn.com/meta/original/3X/9/b/9be6cbe8f739b93b74045ffd5ce6e229c42ffacf.png)

Better example:

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

---

<div class="post-metadata">

### Author: ![InsaneMosquito](https://avatars.discourse-cdn.com/v4/letter/i/7cd45c/32.png) [@InsaneMosquito](https://meta.discourse.org/u/InsaneMosquito)
#### Post date: [2014年八月22日 17:47 UTC](https://meta.discourse.org/t/should-search-prioritize-recent-topics-over-older-topics/19099/55 "2014-08-22T17:47:57Z")

</div>

> [@codinghorror](#):
>
> Well, you can search via google as well

This is not a productive option. Why not integrate Google’s search features into Discourse if this is the option you propose? It also has the benefit of the Discourse team being able to focus on other aspects of the software and letting Google do what they do best.

I also find it somewhat odd that one of the choices for the technology stack was based around it’s superior full text search capability and now you suggest leaving the site to search via Google, completely negating that advantage.

[https://meta.discourse.org/t/why-not-support-mysql/2568/3](https://meta.discourse.org/t/why-not-support-mysql/2568/3)

---

<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: [2014年八月22日 18:46 UTC](https://meta.discourse.org/t/should-search-prioritize-recent-topics-over-older-topics/19099/56 "2014-08-22T18:46:54Z")

</div>

> [@InsaneMosquito](#):
>
> Why not integrate Google’s search features into Discourse if this is the option you propose?

It’s a substitute for advanced full-page search until we have time to build it. Alternately, feel free to submit a PR for full-page search, if you can’t wait…

> [@TechnoBear](#):
>
> The topic is based on the fact that a number of us have experienced real difficulty in using Discourse search

That’s fine, but the core premise of _this_ topic is the fact that SHOW MORE did not appear and should have, and we don’t know why that happened, nor can it be reproduced:

[//cdck-file-uploads-global.s3.dualstack.us-west-2.amazonaws.com/meta/optimized/3X/b/1/b1c8bcf683b5aeeb74a6e28d0ef6d227073ebd1c\_1\_690x280.png](https://global.discourse-cdn.com/meta/optimized/3X/b/1/b1c8bcf683b5aeeb74a6e28d0ef6d227073ebd1c_1_690x280.png)

At any rate, the “canary” search as noted in a different bug is a pretty good repro of something _consistently_ odd, and hopefuly enough for us to find fixes.

---

<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: [2014年八月22日 21:46 UTC](https://meta.discourse.org/t/should-search-prioritize-recent-topics-over-older-topics/19099/57 "2014-08-22T21:46:20Z")

</div>

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…

> [@codinghorror](#):
>
> My developer spidey sense says UI is somehow screwing up and “thinks” there are not enough results to trigger SHOW MORE. I strongly suspect an error or logic bug in the SHOW MORE UI codepath. I just don’t know how to trigger it.

vs.

> [@codinghorror](#):
>
> Oddly enough, the drop-down search was only searching the first post and title. But! And this is a big but!
> 
> If you had enough results from that initial search of just first post and title to trigger show more (5+), SHOW MORE would then, and onnnnly then, search all posts.

… is resolved, going to close this. Feel free to re-open a similar topic on order of results appearing now that everything is showing in the initial search the way it should.

Thanks for your patience everyone.

---

<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: [2014年八月22日 21:46 UTC](https://meta.discourse.org/t/should-search-prioritize-recent-topics-over-older-topics/19099/58 "2014-08-22T21:46:34Z")

</div>



[上一頁](https://meta.discourse.org/t/should-search-prioritize-recent-topics-over-older-topics/19099.md?page=2)
