# Search box stops on 4th character if it is "Y"

**URL:** <https://meta.discourse.org/t/search-box-stops-on-4th-character-if-it-is-y/29641>\
**Category:** Bug\
**Tags:** search\
**Created:** [4 يونيو 2015، 10:45ص UTC](https://meta.discourse.org/t/search-box-stops-on-4th-character-if-it-is-y/29641 "2015-06-04T10:45:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![adopilot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/adopilot/32/105040_2.png) [@adopilot](https://meta.discourse.org/u/adopilot)\
**Post date:** [4 يونيو 2015، 10:45ص UTC](https://meta.discourse.org/t/search-box-stops-on-4th-character-if-it-is-y/29641/1 "2015-06-04T10:45:24Z")

</div>

I do not know is this BUG or regional settings misunderstandings but in serach box when user type word letter by letter if 4TH letter is “Y” serach box shows blank

If I copy and paste full string at once search box will show correct rezults.

Here is few pictures

![](https://global.discourse-cdn.com/meta/original/3X/a/3/a3c5cbf8a296aff2f534255479b5c41def76ede6.png)

* * *

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

* * *

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

* * *

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

---

<div class="post-metadata">

**Author:** ![adopilot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/adopilot/32/105040_2.png) [@adopilot](https://meta.discourse.org/u/adopilot)\
**Post date:** [4 يونيو 2015، 10:56ص UTC](https://meta.discourse.org/t/search-box-stops-on-4th-character-if-it-is-y/29641/2 "2015-06-04T10:56:09Z")

</div>

Forgive me if I’m boring but looks like that this is not just case with Y letter.  
Perhaps Discourse trying to search for words  
Here is also sample whit word  
`silent` will match `silently`  
but when user just types `silentl` Discource will not match `silently`.

---

<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:** [23 يونيو 2015، 4:07ص UTC](https://meta.discourse.org/t/search-box-stops-on-4th-character-if-it-is-y/29641/3 "2015-06-23T04:07:08Z")

</div>

I don’t think this is anything to do with `y` the issue here is that snowball stemmer is used in English. It has edge cases

> **[12.6. Dictionaries](https://www.postgresql.org/docs/9.3/textsearch-dictionaries.html)**
>
> 12.6. Dictionaries # 12.6.1. Stop Words 12.6.2. Simple Dictionary 12.6.3. Synonym Dictionary 12.6.4. Thesaurus Dictionary 12.6.5. Ispell Dictionary 12.6.6. Snowball Dictionary …

I have been considering using ispell instead. Since you are a non-English install its very likely the English stemmer is a bad choice and you should just go with simple or a language specific stemmet.

It will require mucking with the install a bit.

Long term I am thinking of doing all the stemming and stopword in our ruby process to avoid all the magic done in pg.

---

<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:** [11 أغسطس 2015، 7:37ص UTC](https://meta.discourse.org/t/search-box-stops-on-4th-character-if-it-is-y/29641/4 "2015-08-11T07:37:53Z")

</div>

I am pretty sure I fixed this, try latest, if not fixed flag to reopen.

---

<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:** [11 أغسطس 2015، 7:37ص UTC](https://meta.discourse.org/t/search-box-stops-on-4th-character-if-it-is-y/29641/5 "2015-08-11T07:37:56Z")

</div>


