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:
Users reported that Discourse search results are capped at 50 per query, which many find too restrictive—especially on large forums with hundreds of thousands of posts. While initially described by sam as an undocumented design choice, the community widely viewed it as a bug. Users like DeanMarkTaylor, AstonJ, and Jimble emphasized the need for more results (100–500+) or pagination, with some even considering abandoning Discourse due to this limitation. TechnoBear noted the misleading “No more results found” message, and ccstone suggested displaying total hit counts to help users refine searches. HAWK and codinghorror acknowledged the issue wasn’t intentional and required significant work. Developer dmacjam implemented a fix via infinite scroll, loading up to 500 results (10 pages of 50) before prompting users to narrow their search—citing performance constraints similar to Google’s 1000-result cap. The fix was deployed and confirmed working by codinghorror, resolving the issue for users.
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:
It’s the undocumented design, not easy to solve
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.
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)
If expanding the number of results that appears at once is to performance heavy, perhaps a Next button?
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.
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?
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.
My understanding is that this behaviour isn’t by design and will take considerable work to resolve.
Tagging in @codinghorror for input.
@sam replied above, and originally worked on this, so you may want to ask him.
@dmacjam is working on a fix, should be resolved in a few weeks
Here is the pull request resolving this issue: FIX: limited search results by dmacjam · Pull Request #4981 · discourse/discourse · GitHub - 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.
Ok this is now deployed and working, thanks @dmacjam!
![]()