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

AI-generated summary

Search Box Issue with 4th Character “Y”

@adopilot reported a search box issue where results disappear when the 4th character typed is “Y”. However, copying and pasting the full string shows correct results.

@adopilot later discovered that the issue is not limited to the letter “Y”, but rather a problem with word matching. For example, typing “silentl” does not match “silently”.

@sam suggested that the issue lies with the snowball stemmer used in English, which has edge cases. They recommended using a simple or language-specific stemmer instead, which would require modifying the installation.

@sam later claimed to have fixed the issue and asked users to try the latest update.

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




4 Likes

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.

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

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.

1 Like

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