搜索

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

111.XSTokenizerXlen

... 实现接口 XSTokenizer 版本 1.0.0 源代码 sdk/php/lib/XSTokenizer.class.php 内置的定长分词器 Public 方法 隐去继承来的方法 名称描述定义于 __construct() XSTokenizerXlen getTokens() XSTokenizerXlen 方法...

112.RE: 填充测试数据的时候出现错误

发布时间:2011-09-19 17:09 t By tisswb

...位置无论使用那种方式,都会出现如下错误 [XSException] lib/XS.php(1832): Failed to open file(S#513) #0 ../phplib/XS.php(1089): XSServer->execCommand(Array, 250) #1 ../phplib/XS.php(1094): XSIndex->addExdata('????????111????...') #2 ../phplib/XS.php(1100): XSIndex->openBuffer(0) ...

113.XSIndex::stopRebuild

...n} XSIndex 返回自身对象以支持串接操作 源码: sdk/php/lib/XSIndex.class.php#L420 (显示) public function stopRebuild(){ try { $this->execCommand(array('cmd' => XS_CMD_INDEX_REBUILD, 'arg1' => 2), XS_CMD_OK_DB_REBUILD); $this->_rebuild = false; } catch (XSEx...

114.XSTokenizerXstep

... 实现接口 XSTokenizer 版本 1.0.0 源代码 sdk/php/lib/XSTokenizer.class.php 内置的步长分词器 Public 方法 隐去继承来的方法 名称描述定义于 __construct() XSTokenizerXstep getTokens() XSTokenizerXstep 方...

115.XSIndex::clean

...n} XSIndex 返回自身对象以支持串接操作 源码: sdk/php/lib/XSIndex.class.php#L59 (显示) public function clean(){ $this->execCommand(XS_CMD_INDEX_CLEAN_DB, XS_CMD_OK_DB_CLEAN); return $this;} 完全清空索引数据 如果当前数据库处于重建过程中将禁止...

116.XSException 异常

...理代码应类似下面的方式: ~~~ [php] require '$prefix/sdk/php/lib/XS.php'; try { $xs = new XS('demo'); $docs = $xs->search->setQuery('hightman')->setLimit(5)->search(); foreach ($docs as $doc) { echo $doc->rank() . ". " . $doc->subject . " [" . $doc->percent() . "%]...

117.XSTokenizerScws::hasWord

...n} bool 文本中是否包含指定词性的词汇 源码: sdk/php/lib/XSTokenizer.class.php#L382 (显示) public function hasWord($text, $xattr){ $text = $this->applySetting($text); $cmd = new XSCommand(XS_CMD_SEARCH_SCWS_GET, XS_CMD_SCWS_HAS_WORD, 0, $text, $xattr); $res = self::...

118.XSIndex::setCustomDict

...g $content) $content string 新的词典内容 源码: sdk/php/lib/XSIndex.class.php#L495 (显示) public function setCustomDict($content){ $cmd = array('cmd' => XS_CMD_INDEX_USER_DICT, 'arg1' => 1, 'buf' => $content); $this->execCommand($cmd, XS_CMD_OK_DICT_SAVED);} 设置自...

119.XSServer::setTimeout

..., 设为 0则永不超时直到客户端主动关闭 源码: sdk/php/lib/XSServer.class.php#L264 (显示) public function setTimeout($sec){ $cmd = array('cmd' => XS_CMD_TIMEOUT, 'arg' => $sec); $this->execCommand($cmd, XS_CMD_OK_TIMEOUT_SET);} 设置服务端超时秒数

120.XSSearch::setDocOrder

...} XSSearch 返回对象本身以支持串接操作 源码: sdk/php/lib/XSSearch.class.php#L317 (显示) public function setDocOrder($asc = false){ $type = XS_CMD_SORT_TYPE_DOCID | ($asc ? XS_CMD_SORT_FLAG_ASCENDING : 0); $cmd = new XSCommand(XS_CMD_SEARCH_SET_SORT, $type); $this->e...

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