搜索

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

121.迅搜报错

更新时间:2012-07-16 17:07 t By bustard

[XSException] ../../../usr/local/xunsearch/sdk/php/lib/XS.php(1552): Unexpected respond in search {CMD:129, ARG:514} 代码如下 $xs = new XS('discuz'); $tokenizer = new XSTokenizerScws; $subject = $tokenizer->getTops($forumattr['subject'], 20, 'n,ns'); $stack = array(); foreach($subject as $wor...

122.[BUG] 文档更新 开启 openBuffer 报错

更新时间:2011-10-27 16:10 t By vist2007

...]: failed to open stream: Permission denied(2) thrown in ...\xunsearch\sdk\lib\XS.php on line 469

123.XSTokenizerScws::getResult

... [off:词在文本中的位置,attr:词性,word:词] 源码: sdk/php/lib/XSTokenizer.class.php#L339 (显示) public function getResult($text){ $words = array(); $text = $this->applySetting($text); $cmd = new XSCommand(XS_CMD_SEARCH_SCWS_GET, XS_CMD_SCWS_GET_RESULT, 0, $text); $res =...

124.XSSearch::getDbTotal

...lic int getDbTotal() {return} int 数据总量 源码: sdk/php/lib/XSSearch.class.php#L659 (显示) public function getDbTotal(){ $cmd = new XSCommand(XS_CMD_SEARCH_DB_TOTAL); $res = $this->execCommand($cmd, XS_CMD_OK_DB_TOTAL); $tmp = unpack('Itotal', $res->buf); return $tm...

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

发布时间:2013-06-20 11:06 t By tisswb

...8 INFO: reach end of file or error occured, total lines: 3 [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('????????1??????...') #2 ../phplib/XS.php(1100): XSIndex->openBuffer(0...

126.XSSearch::addRange

...} XSSearch 返回对象本身以支持串接操作 源码: sdk/php/lib/XSSearch.class.php#L349 (显示) public function addRange($field, $from, $to){ if ($from === '' || $from === false) { $from = null; } if ($to === '' || $to === false) { $to = null; } if ($fro...

127.XS::convert

...的字符集 {return} mixed 转换后的数据 源码: sdk/php/lib/XS.class.php#L550 (显示) public static function convert($data, $to, $from){ // need not convert if ($to == $from) { return $data; } // array traverse if (is_array($data)) { foreach ($data a...

128.RE: 有没有简洁的php演示搜索代码

发布时间:2011-10-23 20:10 t By ci169

...ch.php(5): Undefined index: key(8) thrown in /home/boyce/xunsearch/sdk/php/lib/XS.php on line 469 [/quote] 你是不是用的旧版本,这是因为变量使用不严谨导致的,建议在搜索 代码开头用 error_reporting(E_ALL ^ E_NOTICE) 屏蔽NOTICE级的错误 。 [/quote]

129.全文检索 tokenizer = full 时,无法查询

发布时间:2013-09-04 16:09 t By hongjh

... full 2. 导入相关数据 require_once '/usr/local/xunsearch/sdk/php/lib/XS.php'; $xs = new XS('goods'); $data = array( 'goods_id' => 112, 'goods_name' => 'hello my goodsname', 'goods_sn' => 'RX8899-114' ); $doc = new XSDocument; $doc->setFields($data); $xs->in...

130.XSTokenizerScws::setIgnore

...okenizerScws 返回对象本身以支持串接操作 源码: sdk/php/lib/XSTokenizer.class.php#L256 (显示) public function setIgnore($yes = true){ $this->_setting['ignore'] = new XSCommand(XS_CMD_SEARCH_SCWS_SET, XS_CMD_SCWS_SET_IGNORE, $yes === false ? 0 : 1); ...

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