随笔 - 0, 文章 - 264, 评论 - 170, 引用 - 0
数据加载中……

solr分词中文支持问题

solr搭建完毕,写了测试程序,搜索中文,怎么搜也搜不出来。

后来发现,是TOMCAT服务器字符编码问题造成的。
于是,在conf/server.xml中,添加字符编码:
<Connector connectionTimeout="20000" port="8088" protocol="HTTP/1.1" redirectPort="8443" URIEncoding="utf-8" />
注意:URIEncoding大小写得对,如果写错了,无效。

posted on 2011-11-08 18:29 小一败涂地 阅读(794) 评论(0)  编辑  收藏 所属分类: lucene、solr等搜索技术相关


只有注册用户登录后才能发表评论。


网站导航: