搜索

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

21.RE: 请问hightman从硬件角度来看,怎么提升xunsearch速度呢?

更新时间:2012-06-20 17:06 t By Mr.

...速度有好处 我怀疑是这么多字段索引造成的压力 [php]$xs=new XS('shi'); $search=$xs->search; $docs=$search->setQuery($keyword)->setLimit(12,($list_page-1)*12)->search(); $count=$search->getLastCount(); $time=$search->setQuery($keyword)->setSort('time')->setLimit(22)->search();[...

22.XSIndex 索引管理

...S::index] 即可。 ~~~ [php] require '$prefix/sdk/php/lib/XS.php'; $xs = new XS('demo'); $index = $xs->index; // 索引对象来自 XS 的属性 ~~~ 关于索引对象的详细用法剖析请阅读后面的专题。 $Id$

23.使用讯搜搭建phpwind的全文检索

更新时间:2012-05-18 09:05 t By myoula

... AFTER INSERT ON pw_threads FOR EACH ROW insert into mq (tid, type) values(new.tid, 0); CREATE TRIGGER umq AFTER UPDATE ON pw_threads FOR EACH ROW insert into mq (tid, type) values(old.tid, 1); CREATE TRIGGER dmq AFTER DELETE ON pw_threads FOR EACH ROW insert into mq (tid, type) values(old.tid, 2)...

24.XSFieldMeta::getCustomTokenizer

...; } if (!class_exists($name)) { throw new XSException('Undefined custom tokenizer `' . $this->tokenizer . '\' for field `' . $this->name . '\''); } } $obj = $arg === null ? new $name : new $name($arg); if (!$obj instanceof XSTokeni...

25.XSSearch 搜索对象

...::search] 即可。 ~~~ [php] require '$prefix/sdk/php/lib/XS.php'; $xs = new XS('demo'); $search = $xs->search; // 搜索对象来自 XS 的属性 ~~~ 默认情况,搜索对象操作时对于用户输入的参数、搜索结果的输出编码视为默认编码,即 [XS::defaultCharset]。 如...

26.迅搜count统计结果是不是一个bug啊?

发布时间:2014-09-19 13:09 t By dandankele

一般过程: 1、实例化得到$xs = new Xs('xxx); 2、得到XSSearch实例,$search = $xs->search; 3、$search->setQuery('xxxxxxxx); 4、增加一系列的条件addRange 5、搜索前统计数量用于分页$total = $search->count(); 6、设置分页$search->setLimit(xxx,xxx); 7、取...

27.RE: xunsearch每天凌晨4点左右挂掉(log)

发布时间:2013-05-27 09:05 t By tendyming

...unsearch/bin/xs-searchd) to /var/spool/abrt/ccpp-2013-05-22-07:24:58-15073.new/coredump (111652864 bytes) May 21 23:24:58 li414-60 abrtd: Directory 'ccpp-2013-05-22-07:24:58-15073' creation detected May 21 23:24:59 li414-60 abrtd: Executable '/usr/local/xunsearch/bin/xs-searchd' doesn't belong to ...

28.RE: xunsearch每天凌晨4点左右挂掉(log)

发布时间:2013-05-25 09:05 t By tendyming

...unsearch/bin/xs-searchd) to /var/spool/abrt/ccpp-2013-05-22-07:24:58-15073.new/coredump (111652864 bytes) May 21 23:24:58 li414-60 abrtd: Directory 'ccpp-2013-05-22-07:24:58-15073' creation detected May 21 23:24:59 li414-60 abrtd: Executable '/usr/local/xunsearch/bin/xs-searchd' doesn't belong to an...

29.XSSearch

...cale > 0 && $scale != 1) ? pack('n', intval($scale * 100)) : ''; $cmd = new XSCommand(XS_CMD_QUERY_PARSE, $addOp, $this->_defaultOp, $query, $bscale); $this->execCommand($cmd); return $query;} 增加默认搜索语句 addQueryTerm() 方法 public XSSearch addQueryTerm(string $...

30.搜索时出错!!!

更新时间:2012-08-03 11:08 t By renzhig

... 代码: try { include '/usr/local/xunsearch/sdk/php/lib/XS.php'; $xs = new XS('demo'); $docs = $xs->search->search('15'); } catch (XSException $e) { echo $e; // 直接输出异常描述 if (defined('DEBUG')) // 如果是 DEBUG 模式,则输出堆栈情况 echo ...

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