...d getTokens($value, $doc=NULL) $value $doc 源码: sdk/php/lib/XSTokenizer.class.php#L220 (显示) public function getTokens($value, XSDocument $doc = null){ $tokens = array(); $this->setIgnore(true); // save charset, force to use UTF-8 $_charset = self::$_charse...
...务器上的目录路径, 可选参数(不得超过255字节). 源码: sdk/php/lib/XSServer.class.php#L251 (显示) public function setProject($name, $home = ''){ if ($name !== $this->_project) { $cmd = array('cmd' => XS_CMD_USE, 'buf' => $name, 'buf1' => $home); $this->execCom...
... 文本所属的字段名称 $text string 文本内容 源码: sdk/php/lib/XSDocument.class.php#L256 (显示) public function addIndex($field, $text){ $field = strval($field); if (!is_array($this->_texts)) { $this->_texts = array(); } if (!isset($this->_texts[$field])...
...eturn} bool 刷新成功返回 true, 失败则返回 false 源码: sdk/php/lib/XSIndex.class.php#L466 (显示) public function flushIndex(){ try { $this->execCommand(XS_CMD_INDEX_COMMIT, XS_CMD_OK_DB_COMMITED); } catch (XSException $e) { if ($e->getCode() === XS_CMD_ERR_...
... {return} XSSearch 返回对象本身以支持串接操作 源码: sdk/php/lib/XSSearch.class.php#L84 (显示) public function setFuzzy($value = true){ $this->_defaultOp = $value === true ? XS_CMD_QUERY_OP_OR : XS_CMD_QUERY_OP_AND; return $this;} 开启模糊搜索 默认情况只...
... {return} bool 如果有返回 true, 否则返回 false 源码: sdk/php/lib/XSServer.class.php#L350 (显示) public function hasRespond(){ // check socket if ($this->_sock === null || $this->_flag & (self::BROKEN | self::FILE)) { return false; } $wfds = $xfds = array()...
...n] /search.php(5): Undefined index: key(8) thrown in /home/boyce/xunsearch/sdk/php/lib/XS.php on line 469
...ixed 字段值 $isMeta bool 是否为元数据字段 源码: sdk/php/lib/XSDocument.class.php#L170 (显示) public function setField($name, $value, $isMeta = false){ if ($value === null) { if ($isMeta) { unset($this->_meta[$name]); } else { unset...
...重置。 // 加载 XS 入口文件 require_once '/home/who/xunsearch/sdk/php/lib/XS.php'; 这段包含代码去掉就能正常显示,一包含XS.php就无法载入页面。我把xs.php复制到网站目录后包含或者直接访问也是一样,请问是什么问题呢?
... $name string 字段名称 $value mixed 字段值 源码: sdk/php/lib/XSDocument.class.php#L93 (显示) public function __set($name, $value){ if ($this->_meta !== null) { throw new XSException('Magick property of result document is read-only'); } $this->setField($na...