coreseek在windows安装问题和使用步骤

coreseek进行搜索步骤(安装http://www.coreseek.cn/products-install/install_on_windows/ 安装步骤 )

1.创建index(命令:indexer.exe –-config d:\coreseek\etc\csft.conf--all)

2.创建searchd守护进程(searchd.exe -–install –-config d:\coreseek \etc\csft.conf)

3.手动到你系统的服务列表中启动searched服务(cmd下面:net start searchd)

4.测试search.exe –c d:\coreseek \etc\csft.conf 300结果如下:

displaying matches:
1. document=1, weight=2783, published=ThuApr 01 22:20:07 2010, author_id=1
words:
1.'300': 1 documents, 3 hits
搞定说明有搜索结果了(不知道大家有什么好的方法可以在window下面用命令来启动它)

 

错误FATAL: OpenSCManager() failed: code=5
解决:searchd --install --configd:\coreseek\coreseek-4.1-win32\etc\csft.conf
究其原因是因为Win7(也包括Vista)中将administrator权限和普通用户权限做了区分,要安装windows服务需要在administrator权限下进行。所以只需要以administrator权限运行cmd.exe就可以。
具体方法为:
选择: 所有程序---->附件--->右键单击命令提示符,选择以管理员身份运行

错误compat_sphinxql_magics=1 isdeprecated; please update your application and config。compat_sphinxql_magics设置在新版中可能(网上的资料中有提到是rt索引的原因)已经被弃用了,但是程序中貌似有个默认值,需要手动在自己的配置文件中将其设置为0

在测试test2.php的时候出现的:

错误Query failed: connection to localhost:9312 failed (errno=10060, msg=由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。).
如果本地使用IPV4、IPV6双栈网络(windows 7),默认localhost 指向IPV6 如下图
D:\coreseek\coreseek-4.1-win32\bin>ping localhost
正在 Ping st_xms-PC [::1] 具有 32 字节的数据:
来自 ::1 的回复: 时间<1ms
来自 ::1 的回复: 时间<1ms
来自 ::1 的回复: 时间<1ms
来自 ::1 的回复: 时间<1ms
改为:127.0.0.1就好了
D:\coreseek\coreseek-4.1-win32\bin>ping 127.0.0.1
正在 Ping 127.0.0.1 具有 32 字节的数据:
来自 127.0.0.1 的回复: 字节=32 时间<1ms TTL=128
来自 127.0.0.1 的回复: 字节=32 时间<1ms TTL=128
来自 127.0.0.1 的回复: 字节=32 时间<1ms TTL=128
来自 127.0.0.1 的回复: 字节=32 时间<1ms TTL=128
$cl = new SphinxClient ();$cl->_host = '127.0.0.1';并且你的
$res = $cl->BuildExcerpts ( $docs, $index, $words, $opts );中的$index必须存在索引中

 

 

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值