搜索

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

11.XSServer::setTimeout

...($sec){ $cmd = array('cmd' => XS_CMD_TIMEOUT, 'arg' => $sec); $this->execCommand($cmd, XS_CMD_OK_TIMEOUT_SET);} 设置服务端超时秒数

12.XSIndex::flushIndex 强制刷新出错啊!

发布时间:2012-07-05 10:07 t By xinjing3836

直接XSIndex::flushIndex 就提示 Fatal error: Undefined class constant 'flushIndex' XSIndex::flushIndex()就提示Method "execCommand" does not exist and was not trapped in __call() 求解决哈!

13.XSTokenizerScws::getVersion

...S_CMD_SEARCH_SCWS_GET, XS_CMD_SCWS_GET_VERSION); $res = self::$_server->execCommand($cmd, XS_CMD_OK_INFO); return $res->buf;} 获取 scws 版本号

14.XSSearch::getDbTotal

...Total(){ $cmd = new XSCommand(XS_CMD_SEARCH_DB_TOTAL); $res = $this->execCommand($cmd, XS_CMD_OK_DB_TOTAL); $tmp = unpack('Itotal', $res->buf); return $tmp['total'];} 获取搜索数据库内的数据总量

15.XSSearch::addDb

...显示) public function addDb($name){ $name = strval($name); $this->execCommand(array('cmd' => XS_CMD_SEARCH_ADD_DB, 'buf' => $name)); $this->_curDbs[] = $name; return $this;} 添加搜索的数据库名, 支持多库同时搜索

16.XSIndex::flushLogging

....php#L449 (显示) public function flushLogging(){ try { $this->execCommand(XS_CMD_FLUSH_LOGGING, XS_CMD_OK_LOG_FLUSHED); } catch (XSException $e) { if ($e->getCode() === XS_CMD_ERR_BUSY) { return false; } throw $e; } return true;} 强制刷新...

17.XSIndex::getScwsMulti

...XS_CMD_SEARCH_SCWS_GET, 'arg1' => XS_CMD_SCWS_GET_MULTI); $res = $this->execCommand($cmd, XS_CMD_OK_INFO); return intval($res->buf);} 获取当前索引库的分词复合等级

18.XSIndex::endRebuild

...($this->_rebuild === true) { $this->_rebuild = false; $this->execCommand(array('cmd' => XS_CMD_INDEX_REBUILD, 'arg1' => 1), XS_CMD_OK_DB_REBUILD); } return $this;} 完成并关闭重建索引 重建完成后调用, 用重建好的索引数据代替旧的索引数据

19.导入库的时候乱码,如下:

发布时间:2012-05-06 14:05 t By weizhao

45): XSServer->execCommand(Array, 250) #1 /home/www/xunsearch/sdk/php/lib/XS.php(1246): XSIndex->addExdata('????????1??????...', false) #2 /home/www/xunsearch/sdk/php/lib/XS.php(1102): XSIndex->appendBuffer('????????37225??...') #3 /home/www/xunsearch/sdk/php/util/Indexer.php(237): XSIndex->updat...

20.XSIndex::setDb

...b/XSIndex.class.php#L439 (显示) public function setDb($name){ $this->execCommand(array('cmd' => XS_CMD_INDEX_SET_DB, 'buf' => $name), XS_CMD_OK_DB_CHANGED); return $this;} 更改存放索引数据的目录 默认索引数据保存到服务器上的 db 目录, 通过此方法修改数据...

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