搜索

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

41.XSTokenizerScws::getResult

...RCH_SCWS_GET, XS_CMD_SCWS_GET_RESULT, 0, $text); $res = self::$_server->execCommand($cmd, XS_CMD_OK_SCWS_RESULT); while ($res->buf !== '') { $tmp = unpack('Ioff/a4attr/a*word', $res->buf); $tmp['word'] = XS::convert($tmp['word'], self::$_charset, 'UTF-8'); $words[] = $tmp;...

42.XSSearch::count

...d(XS_CMD_SEARCH_GET_TOTAL, 0, $this->_defaultOp, $query); $res = $this->execCommand($cmd, XS_CMD_OK_SEARCH_TOTAL); $ret = unpack('Icount', $res->buf); if ($query === '') { $this->_count = $ret['count']; } return $ret['count'];} 估算搜索语句的匹配数据量

43.XSIndex::setScwsMulti

...CWS_SET, 'arg1' => XS_CMD_SCWS_SET_MULTI, 'arg2' => $level); $this->execCommand($cmd); } return $this;} 设置当前索引库的分词复合等级 复合等级是 scws 分词粒度控制的一个重要参数, 是长词细分处理依据, 默认为 3, 值范围 0~15 注意: 这个设...

44.导入mysql数据库一张表,数据导入成功,但是搜索不错来

发布时间:2012-04-27 12:04 t By weizhao

...2092): None of database avaiable(S#506) #0 ../lib/XS.php(1505): XSServer->execCommand(Object(XSCommand), 206) #1 Quest.php(221): XSSearch->search() #2 {main} 请问怎么解决?

45.XSIndex::delSynonym

... $this->appendBuffer(strval($cmd)); } else { $this->execCommand($cmd, XS_CMD_OK_RQST_FINISHED); } } return $this;} 删除某个同义词

46.XSSearch::setScwsMulti

...CWS_SET, 'arg1' => XS_CMD_SCWS_SET_MULTI, 'arg2' => $level); $this->execCommand($cmd); } return $this;} 设置当前搜索语句的分词复合等级 复合等级是 scws 分词粒度控制的一个重要参数, 是长词细分处理依据, 默认为 3, 值范围 0~15 注意: 这个...

47.mysql导入生成索引问题

发布时间:2013-03-04 23:03 t By llkk0914

...lib/XS.php(2231): XSServer->getRespond() 2 ../lib/XS.php(2208): XSServer->execCommand(Array, 201) 3 ../lib/XS.php(2169): XSServer->setProject('cms_51cto') 4 ../lib/XS.php(1312): XSServer->open(8384) 5 ../lib/XS.php(2152): XSSearch->open(8384) 6 ../lib/XS.php(356): XSServer->__construct(8384, Ob...

48.mysql导入生成索引问题

发布时间:2013-03-04 23:03 t By llkk0914

...lib/XS.php(2231): XSServer->getRespond() 2 ../lib/XS.php(2208): XSServer->execCommand(Array, 201) 3 ../lib/XS.php(2169): XSServer->setProject('cms_51cto') 4 ../lib/XS.php(1312): XSServer->open(8384) 5 ../lib/XS.php(2152): XSSearch->open(8384) 6 ../lib/XS.php(356): XSServer->__construct(8384, Ob...

49.XSSearch::terms

...S_CMD_QUERY_GET_TERMS, 0, $this->_defaultOp, $query); $res = $this->execCommand($cmd, XS_CMD_OK_QUERY_TERMS); $ret = array(); $tmps = explode(' ', $res->buf); for ($i = 0; $i < count($tmps); $i++) { if ($tmps[$i] === '' || strpos($tmps[$i], ':') !== false) { ...

50.XSSearch::getQuery

...d(XS_CMD_QUERY_GET_STRING, 0, $this->_defaultOp, $query); $res = $this->execCommand($cmd, XS_CMD_OK_QUERY_STRING); if (strpos($res->buf, 'VALUE_RANGE') !== false) { $regex = '/(VALUE_RANGE) (\d+) (\S+) (.+?)(?=\))/'; $res->buf = preg_replace_callback($regex, array($this, 'formatV...

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