我在centos 7中安装了sphinx 2.2.10,mediawiki版本是1.22,在sphinxsearch扩展homepage中安装了指令,我在步骤3中成功运行了indexer命令。但我的服务器上没有安装搜索命令,我无法测试sphinx。似乎在centos中没有sphinx的任何安装目录。它只是在系统bin目录中有一个searchd和indexer。幸运的是,我可以通过服务器searchd start启动searchd守护进程,它说它正在侦听端口9312.我安装了扩展并正确复制了php api。但我可以'通过搜索得到任何结果,虽然页面中有一个php警告显示,但有些方法已被弃用,不应该使用。下面是我的一些searchd.log文件:
Mon Mar 7 23:16:56.467 2016] [ 1737] shutdown complete
[Mon Mar 7 23:41:41.001 2016] [24720] watchdog: main process 24721 forked ok
[Mon Mar 7 23:41:41.006 2016] [24721] listening on 127.0.0.1:9312
[Mon Mar 7 23:41:41.379 2016] [24721] binlog: replaying log /var/data/binlog.001
[Mon Mar 7 23:41:41.380 2016] [24721] binlog: replay stats: 0 rows in 0 commits; 0 updates, 0 reconfigure; 0 indexes[Mon Mar 7 23:41:41.380 2016] [24721] binlog: finished replaying /var/data/binlog.001; 0.0 MB in 0.000 sec
[Mon Mar 7 23:41:41.380 2016] [24721] binlog: replaying log /var/data/binlog.001
[Mon Mar 7 23:41:41.380 2016] [24721] binlog: replay stats: 0 rows in 0 commits; 0 updates, 0 reconfigure; 0 indexes
[Mon Mar 7 23:41:41.380 2016] [24721] binlog: finished replaying /var/data/binlog.001; 0.0 MB in 0.000 sec[Mon Mar 7 23:41:41.380 2016] [24721] binlog: finished replaying total 2 in 0.000 sec
[Mon Mar 7 23:41:41.381 2016] [24721] accepting connections
现在我不知道如何解决这个问题,任何建议或帮助都将不胜感激。
答案 0 :(得分:0)
我没有得到任何结果,因为我的wiki不是用英文写的,但是mediawiki sphinxsearch扩展的默认配置文件没有其他语言的charset表,所以结果是空的。