搜索

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

31.XSSearch::getExpandedQuery

...$this->_charset); $cmd = array('cmd' => XS_CMD_QUERY_GET_EXPANDED, 'arg1' => $limit, 'buf' => $buf); $res = $this->execCommand($cmd, XS_CMD_OK_RESULT_BEGIN); // echo "Raw Query: " . $res->buf . "\n"; // get result documents while (true) { $res = $this->g...

32.XSFieldMeta::getCustomTokenizer

...okenizer' . ucfirst(trim(substr($this->tokenizer, 0, $pos1))); $arg = substr($this->tokenizer, $pos1 + 1, $pos2 - $pos1 - 1); } else { $name = 'XSTokenizer' . ucfirst($this->tokenizer); $arg = null; } if (!class_exists($name)) { $file ...

33.XSSearch::search

...oc if (isset($doc)) { $name = isset($vnoes[$res->arg]) ? $vnoes[$res->arg] : $res->arg; $doc->setField($name, $res->buf); } } elseif ($res->cmd == XS_CMD_SEARCH_RESULT_MATCHED) { // matched terms if (isset($doc)) { ...

34.配置文件的困惑

发布时间:2012-03-16 17:03 t By 张十三

...符串字段。也可以指定自定义分词器,格式为 name 或 name(arg) 两种形式,其中 name 是分词器名称,arg 则是传递给分词器构造函数的参数。自定义分词器需要在 lib/ 目录下编写名为 XSTokenizerName 的分词类并实现接口 XSTokenizer,内置...

35.API里包含未定义变量

发布时间:2011-11-15 20:11 t By dancebear

zendstudio下提示1051行包含未定义变量即$arg1未定义 $cmds[] = new XSCommand(CMD_DOC_INDEX, $arg1, $field->vno, $text);

36.XSTokenizerXlen::getTokens

...l){ $terms = array(); for ($i = 0; $i < strlen($value); $i += $this->arg) { $terms[] = substr($value, $i, $this->arg); } return $terms;}

37.XSTokenizerXstep::getTokens

...okens($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;}

38.自定义分词器

...vate $delim = '-'; // 默认按 - 分割 public function __construct($arg = null) { if ($arg !== null && $arg !== '') $this->delim = $arg; } public function getTokens($value, XSDocument $doc) { $ret = array(); if (!empty($value)) ...

39.RE: 二元分词问题

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

...ms = 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可以改成这个,那中文一元切分就也可以了 [hr] 建议:目前开放的都是php api,如果能开放...

40.XSCommand::__toString

...str($this->buf1, 0, 0xff); } return pack('CCCCI', $this->cmd, $this->arg1, $this->arg2, strlen($this->buf1), strlen($this->buf)) . $this->buf . $this->buf1;} 转换为封包字符串

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