Coreseek®  
 | 首页 | 注册 | 回复 | 搜索 | 统计资料 |                 网站首页产品服务开放源码安装使用常见问题中文手册社区交流联系我们 
全文检索 论坛首页 / 全文检索 /

中文搜索不到,为什么啊?

 
wzabing
会员
#1 | 发表时间: 2010 09 01 10:29
回复 
我的mysql默认是latin1的,PHP用了转换成UTF-8了,可是怎么都搜索不了中文,数字和英文都是可以的!
HonestQiao
会员
#2 | 发表时间: 2010 09 01 14:14
回复 
请问使用phpmyadmin可以正确看到内容吗?
fl_dream
会员
#3 | 发表时间: 2010 09 14 13:04
回复 
我现是中文搜索不到,LINUX中LANG=zh_CN-utf-8也设置了,set names utf-8也加了,
在linux终端上可以正常看到显示中文,但是就是搜索不到,请问还有哪里需要注意设置的吗?
fl_dream
会员
#4 | 发表时间: 2010 09 14 13:07
回复 
补充下:教程安装中那些测试都很正常,没有任何问题。现在就搜索不到中文,其它没问题。
HonestQiao
会员
#5 | 发表时间: 2010 09 14 16:14
回复 
测试都正常的话,那说明搜索系统可以正常运作。

你现在出问题,基本可以判断出在编码方面。

mysql的配置可以参考: www.coreseek.cn/products-install/mysql/
abcde
会员
#6 | 发表时间: 2010 09 15 20:51
回复 
我发现个现象:
在/usr/locale/coreseek/etc/下得有两个配置文件,csft.conf,sphinx.conf
其中设置,主要是
index test1
{
        #source                                 = src1
        #path                                   = /usr/local/coreseek/var/data/test1
        #docinfo                                        = extern
        #charset_type                   = sbcs

        source                  = src1             #对应的source名称
        path                    = /usr/local/coreseek/var/data/test1
        docinfo                 = extern
        mlock                   = 0
        morphology              = none
        min_word_len            = 1
        html_strip                              = 0
        charset_dictpath = /usr/local/mmseg3/etc/       #BSD、Linux环境下设置,/符号结尾
        #charset_dictpath = etc/                                                #Windows环境下设置,/符号结尾
        charset_type            = zh_cn.utf-8
}
searchd
{
        port                                    = 9312
        log                                             = /usr/local/coreseek/var/log/searchd.log
        query_log                               = /usr/local/coreseek/var/log/searchd_mysql.log
        read_timeout                    = 5
        max_children                    = 30
        pid_file                                = /usr/local/coreseek/var/log/searchd.pid
        max_matches                             = 1000
        seamless_rotate                 = 1
        preopen_indexes                 = 0
        unlink_old                              = 1
}

这个部分得一样,然后建索引时,必须:
bin/indexer -c etc/sphinx.conf --all
这样之后才能正常搜索到中文,如果sphinx.conf中不配置或直接bin/indexer -all这样建索引后,中文就搜索不到。我反复测试了好几次都这样。
abcde
会员
#7 | 发表时间: 2010 09 15 20:54
回复 
补充下:bin/indexer -c etc/csft.conf --all ,如果这样reindex后,搜索中文也不行。
只有bin/indexer -c etc/sphinx.conf --all后,就一切正常了。是不是就这样,咋感觉怪怪的。。
HonestQiao
会员
#8 | 发表时间: 2010 09 16 12:45
回复 
diff -w -r etc/csft.conf etc/sphinx.conf

多半你自己的配置存在差异。
 
回复
Bold Style  Italic Style  Image 链接  URL 链接 
发帖注意:
  • 网址中请去掉http://开头,例如:您需要输入www.coreseek.cn,而不是http://www.coreseek.cn
  • 咨询问题,请贴出详细的操作系统版本、Coreseek版本(Linux环境请给出编译参数)
  • 请仔细查看中文手册和本站安装指南,确认操作正确
  • 请仔细查看常见问题解答,也许你的问题已经有解决方法

» 帐号  » 密码 
发帖前请登陆, 或者 注册 .