搜索

大约有 153 项符合查询结果, 库内数据总量为 3,513 项。 (搜索耗时:0.0052秒)

101.XS::getIndex

..._config['server.index'] : 8383; if (($pos = strpos($conn, ';')) !== false) { $adds = explode(';', substr($conn, $pos + 1)); $conn = substr($conn, 0, $pos); } $this->_index = new XSIndex($conn, $this); $this->_index->setTimeout(0); foreach ($ad...

102.XSSearch::getSynonyms

...rm){ $term = strval($term); if (strlen($term) === 0) { return false; } $cmd = array('cmd' => XS_CMD_SEARCH_GET_SYNONYMS, 'arg1' => 2, 'buf' => $term); $res = $this->execCommand($cmd, XS_CMD_OK_RESULT_SYNONYMS); $ret = $res->buf === '' ? array() : explode("\n", $res->buf); ...

103.XSDatabaseMySQL::query

...G] SQL: $sql\n"; $res = mysql_query($sql, $this->link); if ($res === false) { throw new XSException('MySQL ERROR(#' . mysql_errno($this->link) . '): ' . mysql_error($this->link)); } if (!is_resource($res)) { $ret = $res; } else { $ret = array(); while ($tmp...

104.XSSearch::setRequireMatchedTerm

...ol $value=true) $value bool 设为 true 表示开启返回, 设为 false 关闭该功能, 默认是不开启 {return} XSSearch 返回对象本身以支持串接操作 源码: sdk/php/lib/XSSearch.class.php#L114 (显示) public function setRequireMatchedTerm($value = true){ $a...

105.XSIndex::openBuffer

...ze = 4){ if ($this->_buf !== '') { $this->addExdata($this->_buf, false); } $this->_bufSize = intval($size) << 20; $this->_buf = ''; return $this;} 开启索引命令提交缓冲区 为优化网络性能, 有必要先将本地提交的 add/update/del 等索引变动指令缓...

106.XSIndex::update

update() 方法 public XSIndex update(XSDocument $doc, bool $add=false) $doc XSDocument $add bool 是否为新增文档, 已有数据中不存在同一主键的其它数据 {return} XSIndex 返回自身对象以支持串接操作 源码: sdk/php/lib/XSIndex.class....

107.XSDatabaseSQLite3::query

... "[DEBUG] SQL: $sql\n"; $res = $this->obj->query($sql); if ($res === false) { throw new XSException('SQLITE3 ERROR(#' . $this->obj->lastErrorCode() . '): ' . $this->obj->lastErrorMsg()); } if (!is_object($res)) { $ret = $res; } else { $ret = array(); while ...

108.兩個詞經常查不到

发布时间:2013-01-06 14:01 t By chrislu0044

...sql string {return} 查询结果[b]首行, 失败或无数据[/b]则返回 false 源码: sdk/php/util/XSDataSource.class.php#L450 (显示) public function query1($sql){ $sql = preg_replace('/ limit\s+(\d+)(?:\s*...

109.XSSearch::setAutoSynonyms

...=true) $value bool 设为 true 表示开启同义词功能, 设为 false 关闭同义词功能 {return} XSSearch 返回对象本身以支持串接操作 源码: sdk/php/lib/XSSearch.class.php#L129 (显示) public function setAutoSynonyms($value = true){ $flag = XS_CMD_PARSE_F...

110.XSTokenizerScws::setDict

...null){ if (!is_int($mode)) { $mode = stripos($fpath, '.txt') !== false ? SCWS_XDICT_TXT : SCWS_XDICT_XDB; } $this->_setting['set_dict'] = new XSCommand(XS_CMD_SEARCH_SCWS_SET, XS_CMD_SCWS_SET_DICT, $mode, $fpath); unset($this->_setting['add_dict']); return $this;} 设置分...

  • 时间不限
  • 按相关性排序