# Search within topic is omitting results

**URL:** https://meta.discourse.org/t/search-within-topic-is-omitting-results/42982
**Category:** Bug
**Created:** [April 22, 2016, 11:07am UTC](https://meta.discourse.org/t/search-within-topic-is-omitting-results/42982 "2016-04-22T11:07:21Z")
**Posts on this page:** 1
**Showing post:** 5

<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: [April 22, 2016, 7:39pm UTC](https://meta.discourse.org/t/search-within-topic-is-omitting-results/42982/5 "2016-04-22T19:39:02Z")

</div>

Maybe related to this topic discussing “over-riding browser search” fix?

> [@Two-letter in topic search does not seem to work](https://meta.discourse.org/t/two-letter-in-topic-search-does-not-seem-to-work/42409/2):
>
> topics with \> 20 replies do not have all content loaded in the DOM – we only load the visible posts, and unload the rest

```diff
- showSearch = $('.cooked').length < this.container.lookup('controller:topic').get('model.postStream.stream.length');
+ showSearch = $('.topic-post .cooked, .small-action:not(.time-gap)').length < this.container.lookup('controller:topic').get('model.postStream.stream.length');

```

---

_[View the full topic](https://meta.discourse.org/t/search-within-topic-is-omitting-results/42982)._
