amutu / zhparser

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

How to exclude dot from separators? #18

Closed ArturFormella closed 7 years ago

ArturFormella commented 7 years ago

Hello! How to exclude dot and % sign from separators? SELECT token FROM ts_parse('testzhcfg', '肖特基整流 99.02.7%060.98')

token
肖特基
整流
99
.
02
.
7
%
060.98

Expected:

token
肖特基
整流
99.02.7%060.98

Thank you.

amutu commented 7 years ago

Do not support this because scws make the segment and zhparser can not control its behaviour. But you can reconstruct the “99.02.7%060.98” or similar using the agg function of SQL.