为 mediawiki 安装了 sphinx 扩展,一切似乎都运行良好,但只是没有搜索结果
installed sphinx extension for mediawiki, everything seems working well, but just no search result
我在centos 7中安装了sphinx 2.2.10,mediawiki版本是1.22,按照sphinxsearch扩展homepage中的安装说明,我运行第3步的indexer命令成功。但是我的服务器上没有安装搜索命令,我无法测试 sphinx。 centos好像没有sphinx的安装目录。它在系统 bin directory.Luckily 中只有一个 searchd 和索引器,我可以通过服务器 searchd start 启动 searchd 守护进程,它说它正在侦听端口 9312。我安装了扩展并复制了 php api correctly.But 我无法通过搜索获得任何结果,但页面中显示 php 警告,表示某些方法已弃用,不应该是 used.below我的一些 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
现在我不知道如何解决这个问题,任何建议或帮助将不胜感激。
我没有得到任何结果,因为我的 wiki 不是用英文写的,但是 mediawiki sphinxsearch 扩展的默认配置文件没有其他语言的字符集 table,所以结果是空的。
我在centos 7中安装了sphinx 2.2.10,mediawiki版本是1.22,按照sphinxsearch扩展homepage中的安装说明,我运行第3步的indexer命令成功。但是我的服务器上没有安装搜索命令,我无法测试 sphinx。 centos好像没有sphinx的安装目录。它在系统 bin directory.Luckily 中只有一个 searchd 和索引器,我可以通过服务器 searchd start 启动 searchd 守护进程,它说它正在侦听端口 9312。我安装了扩展并复制了 php api correctly.But 我无法通过搜索获得任何结果,但页面中显示 php 警告,表示某些方法已弃用,不应该是 used.below我的一些 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
现在我不知道如何解决这个问题,任何建议或帮助将不胜感激。
我没有得到任何结果,因为我的 wiki 不是用英文写的,但是 mediawiki sphinxsearch 扩展的默认配置文件没有其他语言的字符集 table,所以结果是空的。