tipask 设置xunsearch 方法

最近发现, 如果不开启这个选项,关键词搜索结果会出现问题; 但是要开启这个选项,首先得确保安装了xunsearch; 如果没有安装,那需要站长有服务器管理权限(虚拟机应该不行),其次需要一点...

最近发现, 如果不开启这个选项,关键词搜索结果会出现问题;

但是要开启这个选项,首先得确保安装了xunsearch;

如果没有安装,那需要站长有服务器管理权限(虚拟机应该不行),其次需要一点点的linux 基础;


如果你都具备.. 那就跟着一起来吧;为了方便和易懂,一切都根据默认来。,

第一步:选择安装目录,一般都是 /usr/local

执行命令:cd /usr/loacl/

第二步:wget 安装包

wget http://www.xunsearch.com/download/xunsearch-full-latest.tar.bz2


第三步:解压

tar -xjf xunsearch-full-latest.tar.bz2


第四步:执行脚本

cd xunsearch-full-1.3.0/
sh setup.sh

如果一切都没报错;就执行下面命令:
cd /usr/local/xunsearch/sdk/php/app
cp demo.ini tipask.ini
vim tipask.ini



加入如下代码:(这段代码来源于很早以前 官方的 整合教程)


project.name = tipask
project.default_charset = utf-8
server.index = 8383
server.search = 8384

[id]
type = id

[cid]
type = numeric

[cid1]
type = numeric

[cid2]
type = numeric

[cid3]
type = numeric

[author]

[authorid]
type = numeric

[answers]
type = numeric

[status]
type = numeric

[time]
type = numeric

[title]
type = title

[description]
type = body


最后:保存,重启xunsearch;(命令: /usr/local/xunsearch/bin/xs-ctl.sh start)

如果没有意外,后台就可以启用xunsearch了。

最后,附上两张图,对比一下开启xunsearch前后的搜索区别

attachments-2016-12-PGNgmPBg58477211608c




如果不开启:

attachments-2016-12-p6H9nEuX5847723caad6






  • 发表于 2016-12-07 10:21
  • 阅读 ( 17473 )
  • 分类:程序使用

0 条评论

请先 登录 后评论
Michael
Michael

IT攻城狮,PHP程序猿

3 篇文章

作家榜 »

  1. 宋登峰 41 文章
  2. 福泽天下 17 文章
  3. 张子豪 5 文章
  4. 0750.tv 5 文章
  5. 闵东升 4 文章
  6. 我了个去 4 文章
  7. 法务网 4 文章
  8. 三叔 3 文章