第 2. 点你可以对分类 id 不为 0 的统一在做索引时 $doc->addTerm('cid', 'have') 然后在搜索的时候 $search->addWeight('cid', 'have') 来提权
[quote='hightman' pid='355' dateline='1323925796'] 第 2. 点你可以对分类 id 不为 0 的统一在做索引时 $doc->addTerm('cid', 'have') 然后在搜索的时候 $search->addWeight('cid', 'have') 来提权 [/quote] 呵呵,是的,避开0就行了
...索引文档的初始字段数据 $d string 可选参数, 当 $p 不为编码时, 本参数表示数据编码 源码: sdk/php/lib/XSDocument.class.php#L56 (显示) public function __construct($p = null, $d = null){ $this->_data = array(); if (is_array($p)) { $this->_data = ...
...是乱,不是gbk或utf8的问题 2. setQuery($keyword) 里面的keyword不为空时,是不会出现乱码的
...索引文档的初始字段数据 $d string 可选参数, 当 $p 不为编码时, 本参数表示数据编码 源码: sdk/php/lib/XSDocument.class.php#L56 (显示) public function __construct($p = null, $d = null){ $this->_data = array(); if (is_array($p)) { $this->_data = ...