...$this->search($type . ':1'); foreach ($result as $doc) /* @var $doc XSDocument */ { $body = $doc->body; $ret[$body] = $doc->f($type); } $this->restoreDb(); } catch (XSException $e) { if ($e->getCode() != XS_CMD_ERR_XAPIAN) { throw $e; ...
...这些关键词检索到数据,但并非数据的字段值 // 用法与 XSDocument::addTerm() 和 XSDocument::addIndex() 等同 // 通常在 ActiveRecord::beforeSave() 中做这些操作 $model->addTerm('subject', 'hi'); $model->addIndex('subject', '你好,世界'); // 如需删除数据则可...
... $thread['tid'] = $tid; $doc = new XSDocument; $doc->setFields($thread); $index->add($doc); } echo '200'; ...
...此自动关闭开启的 rebuild add() 方法 public XSIndex add(XSDocument $doc) $doc XSDocument {return} XSIndex 返回自身对象以支持串接操作 源码: sdk/php/lib/XSIndex.class.php#L72 (显示) public function add(XSDocument $doc){ return $this->update(...