...接操作 源码: sdk/php/lib/XSSearch.class.php#L492 (显示) public function addDb($name){ $name = strval($name); $this->execCommand(array('cmd' => XS_CMD_SEARCH_ADD_DB, 'buf' => $name)); $this->_curDbs[] = $name; return $this;} 添加搜索的数据库名, 支持多库同时...
...接操作 源码: sdk/php/lib/XSIndex.class.php#L85 (显示) public function update(XSDocument $doc, $add = false){ // before submit if ($doc->beforeSubmit($this) === false) { return $this; } // check primary key of document $fid = $this->xs->getFieldId(); $key = $doc->...
...p代码: [php] class MyBlogFilter implements XSDataFilter { public function process($data, $cs =false) { $data['post_content'] = $this->filterHtml($data['post_content']); return $data; } public function filterHtml($str) { $str=eregi_replace("", '', $str); ...
...yzFilter.php ~~~ [php] class XSXyzFilter implements XSDataFilter { public function process($data, $cs) { print_r($data); return $data; } public function processDoc($doc) { // $doc->addTerm('subject', '特殊词'); } } ~~~ 自定义数据源 ----------- 目前数据源有两种类型...