# Searching results not displaying expected topics

**URL:** https://meta.discourse.org/t/searching-results-not-displaying-expected-topics/44209
**Category:** Bug
**Created:** [May 13, 2016, 7:26pm UTC](https://meta.discourse.org/t/searching-results-not-displaying-expected-topics/44209 "2016-05-13T19:26:34Z")
**Posts on this page:** 9
**Page:** 1

<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: [May 13, 2016, 7:26pm UTC](https://meta.discourse.org/t/searching-results-not-displaying-expected-topics/44209/1 "2016-05-13T19:26:34Z")

</div>

Continuing the discussion from [Missing English text `[en.admin.embedding.embed_classname_whitelist]`](https://meta.discourse.org/t/missing-english-text-en-admin-embedding-embed-classname-whitelist/44198/3):

> [@Missing English text \`\[en.admin.embedding.embed\_classname\_whitelist\]\`](https://meta.discourse.org/t/missing-english-text-en-admin-embedding-embed-classname-whitelist/44198/3):
>
> My search-fu has failed me

I was expecting a search for `embed_classname_whitelist` to return results that mentioned `[en.admin.embedding.embed_classname_whitelist]`.

Whilst this might just be because of word-break characters `.` and `]` they are still word-break characters and the results are still unexpected.

## Steps to reproduce

1. Search meta for `embed_classname_whitelist`

## Expected result

Search results should include the following topics:

- [https://meta.discourse.org/t/embedding-wrong-port-in-postmessage/39414](https://meta.discourse.org/t/embedding-wrong-port-in-postmessage/39414)
- [Missing [en.admin.embedding.embed\_classname\_whitelist] translate](https://meta.discourse.org/t/missing-en-admin-embedding-embed-classname-whitelist-translate/42717)
- [Missing English text `[en.admin.embedding.embed_classname_whitelist]`](https://meta.discourse.org/t/missing-english-text-en-admin-embedding-embed-classname-whitelist/44198)

## Actual result

Currently the results are a single result, linking to this topic:

- [https://meta.discourse.org/t/embedding-wrong-port-in-postmessage/39414](https://meta.discourse.org/t/embedding-wrong-port-in-postmessage/39414)

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

## Additional Notes

Searching for `en.admin.embedding.embed_classname_whitelist` results in the expected results:

 ![](https://global.discourse-cdn.com/meta/original/3X/c/5/c5d255ed65caed53fa5c4be847c74d2248ff52d6.png)

And searching for `admin.embedding.embed_classname_whitelist` returns (an unexpected) zero results:

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

Although all of these results might include this topic after submitting this topic.

---

<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: [May 13, 2016, 7:30pm UTC](https://meta.discourse.org/t/searching-results-not-displaying-expected-topics/44209/2 "2016-05-13T19:30:25Z")

</div>

This is also a dupe, has been raised before. Has to do with “programmery” characters interfering with the way “words” are formed in the Postgres search indexes.

---

<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: [May 13, 2016, 7:36pm UTC](https://meta.discourse.org/t/searching-results-not-displaying-expected-topics/44209/3 "2016-05-13T19:36:42Z")

</div>

Could you kindly point me at the topic?

I can’t seem to find it.

---

<div class="post-metadata">

### Author: ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)
#### Post date: [May 13, 2016, 7:38pm UTC](https://meta.discourse.org/t/searching-results-not-displaying-expected-topics/44209/4 "2016-05-13T19:38:57Z")

</div>

[https://meta.discourse.org/t/full-text-search-and-words-delimited-by-punctuation/15481](https://meta.discourse.org/t/full-text-search-and-words-delimited-by-punctuation/15481)

---

<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: [May 13, 2016, 7:39pm UTC](https://meta.discourse.org/t/searching-results-not-displaying-expected-topics/44209/5 "2016-05-13T19:39:06Z")

</div>

I searched for this

`@sam stemmer order:latest`

and got

> [@Discourse's internal search does not find the phrase «PagedownCustom», but Google does](https://meta.discourse.org/t/discourses-internal-search-does-not-find-the-phrase-pagedowncustom-but-google-does/35406):
>

---

<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: [May 13, 2016, 7:42pm UTC](https://meta.discourse.org/t/searching-results-not-displaying-expected-topics/44209/6 "2016-05-13T19:42:17Z")

</div>

> [@codinghorror](#):
>
> `@sam stemmer order:latest`

Ahhh, magic word stemmer 🙂

---

<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: [May 13, 2016, 7:45pm UTC](https://meta.discourse.org/t/searching-results-not-displaying-expected-topics/44209/7 "2016-05-13T19:45:08Z")

</div>

This is probably worthy of a tag to keep search-index-related topics together, but I’m too lazy to set it up.

---

<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: [July 25, 2016, 6:27am UTC](https://meta.discourse.org/t/searching-results-not-displaying-expected-topics/44209/8 "2016-07-25T06:27:41Z")

</div>



---

<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: [July 25, 2016, 7:50am UTC](https://meta.discourse.org/t/searching-results-not-displaying-expected-topics/44209/9 "2016-07-25T07:50:14Z")

</div>

Fixed per:

> [@Discourse's internal search does not find the phrase «PagedownCustom», but Google does](https://meta.discourse.org/t/discourses-internal-search-does-not-find-the-phrase-pagedowncustom-but-google-does/35406/7):
>
> This.is.now.fixanated.via : [https://github.com/discourse/discourse/commit/12ecf8624a97c3d33aaa3cd56851b5f1ca347c90](https://github.com/discourse/discourse/commit/12ecf8624a97c3d33aaa3cd56851b5f1ca347c90) History is a bit tricky, but we are going to rebake at some point and pick it up, so for the time being old stuff needs an edit.
