刘鑫
unread,Feb 12, 2009, 11:02:12 PM2/12/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to nlpb...@googlegroups.com
ubuntu 8.10
postgres 8.3.5
bamboo 1.1.0
默认训练数据
使用to_tsquery('chinesecfg', query)的时候,如果query文本中有空格、英文冒号等字符,会引发语法错误。类似:
myself=# select to_tsquery('chinesecfg', '中文分词测试 chinese and english');
错误: syntax error in tsquery: "中文分词测试 chinese and english"
或
myself=# select to_tsquery('chinesecfg', '中文分词测试:english');
错误: syntax error in tsquery: "中文分词测试:english"
我现在是手工将遇到的字符视情况替换为|或&,请问有没有什么通用的解决方法?
--
杀人放火金腰带,补路修桥无尸骸。
……
劉鑫
March.Liu