模版修改:discuz.htm forumdisplay.htm
安装难易:有一些难度
技术支持:
http://www.winu.cn特点:
DZ论坛检索速度慢是一个比较最大的问题,本程序结合ZendFramework及有效的缓存技术,解决了
检索速度问题,同时解决了中文UTF-8 的分词问题,可以应用到各种大型论坛。
GBK 版增加了高亮显示关键字
首次运行,请在浏览器中执行 firstcreate.php 生成索引文件
需要环境:PHP 5.2 同时打开 PHP 的 cbd 访问权限
方法:
windows下
;extension=php_dba.dll 取消前面的 ;
linux 下
编译时加上
'--enable-dba' '--with-cdb'
安装方法:
第一步 将压缩包中的文件解压
create_index.php 建立索引
search_index.php 前台检索程序
search 包含 ZendFramework-1.0.0(已经修改,以适应中午UTF-8 的字符分割)
---dict 为字典库,里面包含一个基本字典,可以增加,增加后需要重新生成.cdb 文件
include
---cache.class.php 生成缓存
templates/default/search_index.htm 搜索结果页模板
第二步:设置 search/data 目录可写
第三步:修改模板
查找 discuz.htm
<!--{if !empty($google) && ($google & 1)}-->
之后插入
<div style="float:left">
<form method="get" action="search_index.php">
<input type="text" name="keywords" value="$keywords" />
<select name="type">
<option value="1" >仅标题</option>
<option value="2">标题及内容</option>
</select>
<button type="submit" style="height:30px">全文检索</button>
</form>
</div>
查找forumdisplay.htm
<div id="headsearch">
之后插入
<div style="width:400px;float:left;height:30px">
<form method="get" action="search_index.php">
<input type="text" name="keywords" value="$keywords" />
<select name="type">
<option value="1" >仅标题</option>
<option value="2" <!--{if $type=2}--> selected <!--{/if}-->>标题及内容</option>
</select>
<button type="submit" style="height:30px">全文检索</button>
</form>
</div>
第四步:在Discuz! 6.0.0 后台增加一个计划任务 create_index.php 每天执行,将新的帖子加入全文搜索
第五步: 打开浏览器 输入 http://你的论坛地址/firstcreate.php
点击开始生成索引 按钮,知道运行完成