搜索

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

11.XSTokenizerScws

...'] = array(); } $this->_setting['add_dict'][] = new XSCommand(XS_CMD_SEARCH_SCWS_SET, XS_CMD_SCWS_ADD_DICT, $mode, $fpath); return $this;} 添加分词词典, 支持 TXT/XDB 格式 getResult() 方法 public array getResult(string $text) $text string 待分词的文本 ...

12.XSSearch::addSearchLog

addSearchLog() 方法 (自版本 v1.1.1 起可用) public void addSearchLog(string $query, int $wdf=1) $query string 需要记录的数据 $wdf int 需要记录的次数, 默认为 1 源码: sdk/php/lib/XSSearch.class.php#L831 (显示) public function addSearchLog($query,...

13.XSSearch::getRelatedQuery

...return} array 返回搜索词组成的数组 源码: sdk/php/lib/XSSearch.class.php#L707 (显示) public function getRelatedQuery($query = null, $limit = 6){ $ret = array(); $limit = max(1, min(20, intval($limit))); // Simple to disable query with field filter if ($query === nul...

14.XSTokenizerScws::setMulti

...de) & self::MULTI_MASK; $this->_setting['multi'] = new XSCommand(XS_CMD_SEARCH_SCWS_SET, XS_CMD_SCWS_SET_MULTI, $mode); return $this;} 设置复合分词选项

15.XSSearch::setCutOff

setCutOff() 方法 public XSSearch setCutOff(int $percent, float $weight=0) $percent int 剔除匹配百分比低于此值的文档, 值范围 0-100 $weight float 剔除权重低于此值的文档, 值范围 0.1-25.5, 0 表示不剔除 {return} XSSearch 返回对象本...

16.XSSearch::getExpandedQuery

...return} array 返回搜索词组成的数组 源码: sdk/php/lib/XSSearch.class.php#L755 (显示) public function getExpandedQuery($query, $limit = 10){ $ret = array(); $limit = max(1, min(20, intval($limit))); try { $buf = XS::convert($query, 'UTF-8', $this->_charset); ...

17.XSSearch::setCollapse

setCollapse() 方法 public XSSearch setCollapse(string $field, int $num=1) $field string 依据该字段的值折叠搜索结果, 设为 null 则取消折叠 $num int 折叠后只是返最匹配的数据数量, 默认为 1, 最大值 255 {return} XSSearch 返回对象...

18.搜索全文时较慢,在0.5+秒,甚至1.0+秒【900M数据库】

更新时间:2013-07-05 15:07 t By chinapubmed

...索页面暂时没有列出) 地址:http://www.chinapubmed.net/pub/search.php #机器配置 处理器: IntelXeon 5645/E5-2620*4(4核) 系 统: CentOS 6.2 64位 内 存: 2 GB ECC 这是用unix bench的跑分情况 [attachment=60] 应该说性能还算OK。 这是随...

19.XSIndex::setScwsMulti

...; if ($level >= 0 && $level < 16) { $cmd = array('cmd' => XS_CMD_SEARCH_SCWS_SET, 'arg1' => XS_CMD_SCWS_SET_MULTI, 'arg2' => $level); $this->execCommand($cmd); } return $this;} 设置当前索引库的分词复合等级 复合等级是 scws 分词粒度控制的一个重...

20.XSSearch::setScwsMulti

setScwsMulti() 方法 (自版本 v1.4.7 起可用) public XSSearch setScwsMulti(int $level) $level int 要设置的分词复合等级 {return} XSSearch 返回自身对象以支持串接操作 源码: sdk/php/lib/XSSearch.class.php#L444 (显示) public function setScwsMult...

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