ecshop的中文分词简单一点只需要对goods表检索就行了,然后根据keywords匹配到 对应的cat_id,然后组织uri,进行分页即可。 详细参见我的网站:www.yanphp.com 无 #源定义source mysql{ type = mysql sql_host = 192.168.1.117 sql_user = 数据库用户名 sql_pa
ecshop 的中文分词简单一点只需要对goods表检索就行了,然后根据keywords匹配到
#源定义 source mysql { type = mysql sql_host = 192.168.1.117 sql_user = 数据库用户名 sql_pass = 数据库密码 sql_db = 数据库名 sql_port = 3306 sql_query_pre = SET NAMES utf8 sql_query = SELECT goods_id, cat_id,goods_name FROM fg_goods sql_attr_uint = cat_id #sql_attr_timestamp = addtime sql_query_info_pre = SET NAMES utf8 sql_query_info = SELECT * FROM fg_goods WHERE goods_id=$id } #index定义 index mysql { source = mysql path = c:\user\local\coreseek\var\data_fgbk\mysql docinfo = extern mlock = 0 morphology = none min_word_len = 1 html_strip = 0 #中文分词配置,详情请查看:http://www.coreseek.cn/products-install/coreseek_mmseg/ #charset_dictpath = /usr/local/mmseg3/etc/ #BSD、Linux环境下设置,/符号结尾 charset_dictpath = c:\user\local\coreseek\etc\ #Windows环境下设置,/符号结尾,最好给出绝对路径,例如:C:/usr/local/coreseek/etc/... charset_type = zh_cn.utf-8 } #全局index定义 indexer { mem_limit = 128M } #searchd服务定义 searchd { listen = 9312 read_timeout = 5 max_children = 30 max_matches = 1000 seamless_rotate = 0 preopen_indexes = 0 unlink_old = 1 pid_file = c:\user\local\coreseek\var\log\searchd_fgbk.pid #请修改为实际使用的绝对路径,例如:/usr/local/coreseek/var/... log = c:\user\local\coreseek\var\log\searchd_fgbk.log #请修改为实际使用的绝对路径,例如:/usr/local/coreseek/var/... query_log = c:\user\local\coreseek\var\log\query_fgbk.log #请修改为实际使用的绝对路径,例如:/usr/local/coreseek/var/... }