# Search Results Limited to 50 each time

**URL:** https://meta.discourse.org/t/search-results-limited-to-50-each-time/34270
**Category:** Bug
**Tags:** search
**Created:** [Octobre 8, 2015, 2:47 UTC](https://meta.discourse.org/t/search-results-limited-to-50-each-time/34270 "2015-10-08T14:47:32Z")
**Posts on this page:** 14
**Page:** 1

<div class="post-metadata">

### Author: ![Er00](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/er00/32/42921_2.png) [@Er00](https://meta.discourse.org/u/Er00)
#### Post date: [Octobre 8, 2015, 2:47 UTC](https://meta.discourse.org/t/search-results-limited-to-50-each-time/34270/1 "2015-10-08T14:47:33Z")

</div>

Searching seems to only give me 50 results (no matter what I search for). I’m not sure if this truly is a bug or whether it’s an undocumented (as far as I can tell) feature.

Showing it on both Discourse Meta and my own forum:

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

 ![](https://global.discourse-cdn.com/meta/original/3X/1/e/1e0f9674a622506dad73d2a176c67721aad3f50f.png)

---

<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: [Octobre 8, 2015, 8:36 UTC](https://meta.discourse.org/t/search-results-limited-to-50-each-time/34270/2 "2015-10-08T20:36:56Z")

</div>

It’s the undocumented design, not easy to solve

---

<div class="post-metadata">

### Author: ![DeanMarkTaylor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/deanmarktaylor/32/102462_2.png) [@DeanMarkTaylor](https://meta.discourse.org/u/DeanMarkTaylor)
#### Post date: [Mars 18, 2016, 3:00 UTC](https://meta.discourse.org/t/search-results-limited-to-50-each-time/34270/3 "2016-03-18T03:00:49Z")

</div>

I run into this problem almost every day…

… one of the Discourse sites I help run is over 12 years old, with over 450k of posts (lots of content)

So 50 results is almost never enough.

---

<div class="post-metadata">

### Author: ![AstonJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/astonj/32/215041_2.png) [@AstonJ](https://meta.discourse.org/u/AstonJ)
#### Post date: [Novembre 20, 2016, 12:47 UTC](https://meta.discourse.org/t/search-results-limited-to-50-each-time/34270/4 "2016-11-20T00:47:13Z")

</div>

I was just about to come and report this as a bug. 50 seems awfully restrictive - 100 to 200 would be a better minimum if possible.

(I think on vB it was usually 500)

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [Novembre 20, 2016, 6:15 UTC](https://meta.discourse.org/t/search-results-limited-to-50-each-time/34270/5 "2016-11-20T06:15:54Z")

</div>

If expanding the number of results that appears at once is to performance heavy, perhaps a Next button?

---

<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: [Novembre 20, 2016, 12:16 UTC](https://meta.discourse.org/t/search-results-limited-to-50-each-time/34270/6 "2016-11-20T12:16:10Z")

</div>

At the very least, the “No more results found” text should be changed, as it’s misleading; it implies there _are_ no more results for the search term, not that there’s a limit on the number of results the system returns.

---

<div class="post-metadata">

### Author: ![ccstone](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ccstone/32/140215_2.png) [@ccstone](https://meta.discourse.org/u/ccstone)
#### Post date: [Mars 18, 2017, 10:54 UTC](https://meta.discourse.org/t/search-results-limited-to-50-each-time/34270/7 "2017-03-18T10:54:59Z")

</div>

Why not at the very least show the total number of hits, so the user is able to make an informed choice about refining their search?

---

<div class="post-metadata">

### Author: ![Jimble](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jimble/32/75902_2.png) [@Jimble](https://meta.discourse.org/u/Jimble)
#### Post date: [Juillet 31, 2017, 12:03 UTC](https://meta.discourse.org/t/search-results-limited-to-50-each-time/34270/8 "2017-07-31T00:03:34Z")

</div>

I would like to set the amount of search results in the admin. Or at least have a next button. We are considering ditching Discourse because of this. Our users want to go back through the years and read ALL the posts about a search term.

---

<div class="post-metadata">

### Author: ![HAWK](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hawk/32/86627_2.png) [@HAWK](https://meta.discourse.org/u/HAWK)
#### Post date: [Juillet 31, 2017, 12:15 UTC](https://meta.discourse.org/t/search-results-limited-to-50-each-time/34270/9 "2017-07-31T00:15:44Z")

</div>

My understanding is that this behaviour isn’t by design and will take considerable work to resolve.  
Tagging in @codinghorror for input.

---

<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: [Juillet 31, 2017, 5:05 UTC](https://meta.discourse.org/t/search-results-limited-to-50-each-time/34270/10 "2017-07-31T05:05:05Z")

</div>

@sam replied above, and originally worked on this, so you may want to ask him.

---

<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: [Juillet 31, 2017, 11:54 UTC](https://meta.discourse.org/t/search-results-limited-to-50-each-time/34270/11 "2017-07-31T11:54:26Z")

</div>

@dmacjam is working on a fix, should be resolved in a few weeks

---

<div class="post-metadata">

### Author: ![dmacjam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dmacjam/32/67659_2.png) [@dmacjam](https://meta.discourse.org/u/dmacjam)
#### Post date: [Juillet 31, 2017, 12:24 UTC](https://meta.discourse.org/t/search-results-limited-to-50-each-time/34270/12 "2017-07-31T12:24:07Z")

</div>

Here is the pull request resolving this issue: [FIX: limited search results by dmacjam · Pull Request #4981 · discourse/discourse · GitHub](https://github.com/discourse/discourse/pull/4981) - added infinite loading of search results, in total 10 pages of 50 results are loaded when scrolling which results in 500 search results (not more because of the performance, even Google limits maximum 1000 results per query). If there are still more results, it tells users to narrow down their search criteria. Any comments and suggestions are welcome.

---

<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: [Août 2, 2017, 11:52 UTC](https://meta.discourse.org/t/search-results-limited-to-50-each-time/34270/13 "2017-08-02T23:52:41Z")

</div>

Ok this is now deployed and working, thanks @dmacjam! 🎉 🌮

---

<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: [Août 2, 2017, 11:52 UTC](https://meta.discourse.org/t/search-results-limited-to-50-each-time/34270/14 "2017-08-02T23:52:46Z")

</div>


