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

search

(Admir Hodzic) #1

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





(Admir Hodzic) #2

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.


(Sam Saffron) #3

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

http://www.postgresql.org/docs/9.3/static/textsearch-dictionaries.html

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.


(Sam Saffron) #4

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


(Sam Saffron) #5