搜索

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

11.RE: 二元分词问题

更新时间:2011-11-15 13:11 t By icebolt

... public function getTokens($value, XSDocument $doc = null) { $terms = array(); for ($i = 0; $i < mb_strlen($value,"utf-8"); $i += $this->arg) { $terms[] = mb_substr($value, $i, $this->arg,"utf-8"); } return $terms; } hightman可以改成这个,那中文一元切分就也...

12.XSSearch

...来的属性 名称类型描述定义于 allSynonyms array 获取当前库内的全部同义词列表 XSSearch connString string 连接字符串 XSServer correctedQuery array 获取修正后的搜索词列表 XSSearch dbTotal int 获取搜索数...

13.XSIndex::update

...E; $cmd->arg2 = $fid->vno; $cmd->buf = $key; } $cmds = array($cmd); // document cmds foreach ($this->xs->getAllFields() as $field) /* @var $field XSFieldMeta */ { // value if (($value = $doc->f($field)) !== null) { $varg = $field->isNumeric() ? XS_C...

14.RE: 关于排序问题

发布时间:2014-05-09 11:05 t By sszwei

...查不出应该是不可能的. [/quote] [quote] $search->setQuery($array['word'])->setSort($array['sort'])->setLimit($array['limit'], $array['offset'])->search(); [/quote] 做了这样 [quote] $search->setSort($array['sort'])->setLimit($array['limit'], $array['offset'])->search($array['wor...

15.XSDocument::setFields

setFields() 方法 public void setFields(array $data) $data array 字段名及其值组成的数组 源码: sdk/php/lib/XSDocument.class.php#L154 (显示) public function setFields($data){ if ($data === null) { $this->_data = array(); $this->_meta = $this->_terms...

16.XSTokenizerXlen

...) public function getTokens($value, XSDocument $doc = null){ $terms = array(); for ($i = 0; $i < strlen($value); $i += $this->arg) { $terms[] = substr($value, $i, $this->arg); } return $terms;}

17.XSTokenizerXstep

...) public function getTokens($value, XSDocument $doc = null){ $terms = array(); $i = $this->arg; while (true) { $terms[] = substr($value, 0, $i); if ($i >= strlen($value)) { break; } $i += $this->arg; } return $terms;}

18.更新索引后,搜索结果中出现空数据文档

发布时间:2012-11-09 16:11 t By stars_and_moon

...update更新修改过的文档后,搜索结果中出现空文档信息 Array ( [0] => XSDocument Object ( [_data:private] => Array ( ) [_terms:private] => [_texts:private] => [_charset:private...

19.搜索结果正常,但json_encode结果之后就为空了

更新时间:2014-08-26 10:08 t By Leric

搜索结果正常如下: Array ( [0] => XSDocument Object ( [_data:XSDocument:private] => Array ( [id] => 4089 [name] => 思诺尔 亚麻水立方红色1.5米 [brand_name] => 思诺尔 ...

20.搜索出来的数字型怎么成了这样的乱码

更新时间:2012-02-24 11:02 t By zl8522115

[code]Array ( [0] => XSDocument Object ( [_data:private] => Array ( [id] => 231859 [title] => 尖子生弃考留学成主流 不少学生脚踩两船 [lv1] => 3 [lv2] => 6...

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