<var id="xvh3p"><noframes id="xvh3p"><var id="xvh3p"></var><listing id="xvh3p"><strike id="xvh3p"><listing id="xvh3p"></listing></strike></listing>
<var id="xvh3p"><strike id="xvh3p"><var id="xvh3p"></var></strike></var><th id="xvh3p"><strike id="xvh3p"><th id="xvh3p"></th></strike></th>
<span id="xvh3p"><noframes id="xvh3p"><dl id="xvh3p"></dl>
<span id="xvh3p"><noframes id="xvh3p">
<dl id="xvh3p"><noframes id="xvh3p">
<listing id="xvh3p"><noframes id="xvh3p"><listing id="xvh3p"><strike id="xvh3p"><listing id="xvh3p"></listing></strike></listing><th id="xvh3p"><strike id="xvh3p"><th id="xvh3p"></th></strike></th>
<th id="xvh3p"><strike id="xvh3p"></strike></th>
<dl id="xvh3p"><noframes id="xvh3p">
<th id="xvh3p"><noframes id="xvh3p">

观点

互联网+时代,说建站,谈运营与网络营销

让Dedecms自带搜索实现全文检索

时间:2020-12-09

Dedecms 5.5 5.6默认的模糊搜索只能根据网站文章的名称进行搜索,无法搜索到文章内部信息,下面讲一下如何让Dedecms自带搜索实现全文检索:登陆Dedecms 后台—核心—频道模型—内容模型管理—普通文章—点击后面那个放大镜标志(最重要一步)—附件表可供自定义搜索的字段,这里的字段是程序依据字段类型自动 选择生成的,将“文章内容”前面那个打勾,此时将修改掉搜索字段,但是还没有成功,还需要修改模板相应的代码。

将模板文件head.htm 中的以下代码:

 

01 <form action="{dede:field name='phpurl'/}/search.php" name="formsearch">  
02 <div class="form">  
03 <h4>搜索</h4>  
04 <input type="hidden" name="kwtype" value="0" />  
05 <input name="keyword" type="text" class="search-keyword" id="search-keyword" />  
06 <select name="searchtype" class="search-option" id="search-option">  
07 <option value="titlekeyword" selected='1'>智能模糊搜索</option>  
08 <option value="title">仅搜索标题</option>  
09 </select
0