搜索

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

171.建立索引时错误

更新时间:2013-12-14 12:12 t By sundyandy

... directory[/color] #0 XSDataSource.class.php(180): XSDatabasePDO->connect(Array) #1 XSDataSource.class.php(35): XSDatabaseDataSource->init() #2 XSDataSource.class.php(51): XSDataSource->__construct('mysql://root:12...', 'SELECT * FROM d...') #3 Indexer.php(244): XSDataSource::instance('mysql://r...

172.XSSearch::search

...['count']; // load vno map to name of fields $ret = $this->_facets = array(); $vnoes = $this->xs->getScheme()->getVnoMap(); // get result documents while (true) { $res = $this->getRespond(); if ($res->cmd == XS_CMD_SEARCH_RESULT_FACETS) { $off = 0; ...

173.XSTokenizerScws::addDict

...isset($this->_setting['add_dict'])) { $this->_setting['add_dict'] = array(); } $this->_setting['add_dict'][] = new XSCommand(XS_CMD_SEARCH_SCWS_SET, XS_CMD_SCWS_ADD_DICT, $mode, $fpath); return $this;} 添加分词词典, 支持 TXT/XDB 格式

174.RE: 搜索蜘蛛来抓取,导致搜索日志不正常,热门搜索一直是不相关的内容

发布时间:2012-08-30 18:08 t By Mr.

修改XS.php文件 第1558行 [php]$this->logQuery();[/php] 改为: [php]if($ret&&!stripos(str_ireplace(array('spider','bot','slurp'),'fuck123',$_SERVER['HTTP_USER_AGENT']),'fuck123')) $this->logQuery();[/php]

175.填充测试数据的时候出现错误

更新时间:2011-09-19 17:09 t By tisswb

...ion]: xs_error_handler(8, 'ob_flush(): fai...', '/usr/local/xuns...', 176, Array) #1 /usr/local/xunsearch/sdk/php/util/Indexer.php(176): ob_flush() #2 {main} 我的系统是centos5.5 yum安装的apahce php xunsearch安装正常,检测的时候有一个缓存模块的warning 不知道是啥情...

176.mysql导入生成索引问题

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

...231): 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, Object(XS)) 7...

177.mysql导入生成索引问题

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

...231): 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, Object(XS)) 7...

178.输入词汇过滤

更新时间:2012-11-03 16:11 t By Dull

...入的函数,部分如下: [php]function checksys($str){ $syskey = array(' AND ',' OR ',' NOT ',' AND_NOT ',' XOR ',' NEAR ',' ADJ '); $str = str_replace($syskey,' ',' '.$str.' '); $ta = explode('.',trim($str).'.'); $i = 0; $str = ''; foreach($ta as $t){ if(is_string($t) && strle...

179.多属性字段按此字段值分面统计结果不正确

更新时间:2013-07-19 10:07 t By stcer

...$doc->addTerm('cid', $node->getId()); } } 搜索 $search->setFacets(array('cid'), true); $search->search(); $counts = $search->getFacets('cid');

180.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;}

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