Coreseek开源中文检索引擎 coreseek-4.1 win7安装教程

1692

首页到 Coreseek官网下载 http://www.coreseek.cn/  coreseek-4.1-win32,下载后解压到相应目录,我这里安装的是在d:/web/coreseek下。所以下面很多涉及到安装的地方需要自己做相应修改!下载解压后,把D:webcoreseeketccsft_mysql.conf 这个文件复制一份到D:webcoreseekbin下面,并且命名为coreseek.conf,然后修改配置文件里面的相关信息。具体的设置方式官方有说明,我这里就不说了。

这个是我的coreseek.conf 配置文件。

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#源定义
source mysql{
     type                    = mysql
     sql_host                = localhost
     sql_user                = root
     sql_pass                = root
     sql_db                  = cms20131115
     sql_port                = 3306
     sql_query_pre           = SET NAMES utf8
     sql_query               = SELECT searchid, adddate, catid, id, modelid, data as content FROM think_search
                                                               #sql_query第一列id需为整数
                                                               #title、content作为字符串/文本字段,被全文索引
     sql_attr_uint           = id      #从SQL读取到的值必须为整数
     sql_attr_uint           = modelid
     sql_attr_uint           = catid
     sql_attr_timestamp      = adddate #从SQL读取到的值必须为整数,作为时间属性
     sql_query_info_pre      = SET NAMES utf8                                        #命令行查询时,设置正确的字符集
     sql_query_info          = SELECT * FROM think_search WHERE searchid=$id #命令行查询时,从数据库读取原始数据信息
}
#index定义
index mysql
{
     source           = mysql #对应的source名称
     path             = D:/web/coreseek/var/data/mysql #请修改为实际使用的绝对路径,例如:/usr/local/coreseek/var/...
     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 = D:/web/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    = D:/web/coreseek/var/log/searchd_mysql.pid  #请修改为实际使用的绝对路径,例如:/usr/local/coreseek/var/...
     log         = D:/web/coreseek/var/log/searchd_mysql.log #请修改为实际使用的绝对路径,例如:/usr/local/coreseek/var/...
     query_log   = D:/web/coreseek/var/log/query_mysql.log #请修改为实际使用的绝对路径,例如:/usr/local/coreseek/var/...
     binlog_path =  #关闭binlog日志
}


配置完成安装下面操作即可:

1.点击开始按钮输入cmd ,右键cmd.exe 以管理员身份运行

2.安装coreseek

d:/web/coreseek/bin/searchd --install --config d:/web/coreseek/bin/coreseek.conf  --servicename Coreseek

并启动 Coreseek 服务

sc start Coreseek


3.如要已启动服务,要更新索引

d:/web/coreseek/bin/indexer -c d:/web/coreseek/bin/coreseek.conf --all --rotate


4.开启coreseek命令

d:/web/coreseek/bin/searchd -c d:/web/coreseek/bin/coreseek.conf


操作完成后打开搜索页面测试就可以了

卸载 coreseek

停止服务

sc stop Coreseek

卸载服务 sc delete Coreseek


文章来源:http://www.moretouch.com.cn/news/jishufenxiang/74.html

  • 0
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值