# Search within topic is omitting results

**URL:** <https://meta.discourse.org/t/search-within-topic-is-omitting-results/42982>\
**Category:** Bug\
**Created:** [2016年四月22日 11:07 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:** 7

<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:** [2016年四月22日 23:04 UTC](https://meta.discourse.org/t/search-within-topic-is-omitting-results/42982/7 "2016-04-22T23:04:53Z")

</div>

> [@cpradio](#):
>
> I eventually want to try and look into what the in-topic search is doing,

Same here now.

I thought it might be a “not in the DOM yet” thing. but testing with my longest localhost topic (109 posts) an in-topic search found the last post without a problem

I thought it might be because of deleted or system action posts interfering with post count - topic length. but again in-topic search found the last post OK in a couple of ~40 posts topics that had non-posts.

I know there can be at-first-unexpected results where quotes and emoji names can be returned. And there are some stop words such as “the”, for" etc. but trending and hashtags wouldn’t be in those, except maybe quotes.

> [@SQL: The most N used words per user (speak their language!)](https://meta.discourse.org/t/sql-the-most-n-used-words-per-user-speak-their-language/38556/12):
>
> List of stop words here for reference: [https://apt-browse.org/browse/ubuntu/trusty/main/i386/postgresql-9.3/9.3.4-1/file/usr/share/postgresql/9.3/tsearch\_data/english.stop](https://apt-browse.org/browse/ubuntu/trusty/main/i386/postgresql-9.3/9.3.4-1/file/usr/share/postgresql/9.3/tsearch_data/english.stop) The idea is that these words appear in “most” English “texts” regardless of subject.

---

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