...(不得超过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->execCommand($cmd, XS_CMD_OK_PROJECT); ...
... 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])) { $this->_texts[$field] = strv...
...rue, 失败则返回 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_BUSY || $e->getCode() === XS_CMD_ERR...
...身以支持串接操作 源码: 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;} 开启模糊搜索 默认情况只返回包含所有搜索词的记录, ...
...ocal/xunsearch/sdk/php/lib/MyBlogFilter --project=go >log.txt 然后仍然显示”忽略错误的过滤器“,我查了下感觉没啥问题啊。怎么老忽略呢?谢谢! 并且我用了您在文档中定义的过滤器, 即: class XSXyzFilter implements XSDataFilter { public fun...
... 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(); $rfds = array($this->_sock); ...
...否为元数据字段 源码: 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($this->_data[$name]); } } else...
...alue 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($name, $value);} 魔术方法 __set ...
...), 若无则返回 null 源码: sdk/php/lib/XSDocument.class.php#L202 (显示) public function getAddTerms($field){ $field = strval($field); if ($this->_terms === null || !isset($this->_terms[$field])) { return null; } $terms = array(); foreach ($this->_terms[$field] as $t...
...效则返回 false 源码: sdk/php/lib/XSFieldScheme.class.php#L175 (显示) public function checkValid($throw = false){ if (!isset($this->_typeMap[XSFieldMeta::TYPE_ID])) { if ($throw) { throw new XSException('Missing field of type ID'); } return false; } ...