amutu / zhparser

zhparser is a PostgreSQL extension for full-text search of Chinese language
Other
717 stars 86 forks source link

Zhparser and standard parser behave a bit differently on tsquery of some english words #30

Closed xuxinx closed 5 years ago

xuxinx commented 5 years ago

Standard parser tsquery some words like apple return appl (Sorry, I don't known why)

SELECT to_tsquery('apple');
# Output: 
#  to_tsquery 
# ------------
#  'appl'
# (1 row)

zhparser tsquery apple just return apple

SELECT to_tsquery('testzhcfg', 'apple');
# Output:
#  to_tsquery 
# ------------
#  'apple'
# (1 row)
xuxinx commented 5 years ago

Found too many differences between Zhparser and standard parser when they processing English.
I realized Zhparser is not for both English.