搜索

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

21.关于搜索分页的bug

发布时间:2012-03-27 10:03 t By ttgive

在使用xunsearch的时候,因为业务需要复杂一点的设计.这样就导致查询语句也会复制一点. Bug重现: $search->setSort('addtime',false); $docs=$search->addRange('addtime',$from,null)->search(); $count=$search->getLastCount(); 在相关时间区间里面搜索再以...

22.RE: 关于排序问题

发布时间:2014-05-09 11:05 t By sszwei

...有index,有term。查不出应该是不可能的. [/quote] [quote] $search->setQuery($array['word'])->setSort($array['sort'])->setLimit($array['limit'], $array['offset'])->search(); [/quote] 做了这样 [quote] $search->setSort($array['sort'])->setLimit($array['limit'], $array['offset'])-...

23.XSSearch::search

search() 方法 public XSDocument[] search(string $query=NULL, boolean $saveHighlight=true) $query string 搜索语句, 若传入 null 使用默认语句, 最大长度为 80 字节 $saveHighlight boolean 是否存储查询词用于高亮处理, 默认为 true {return} XS...

24.区间搜索(addRange)返回总数误差很大

发布时间:2013-07-22 16:07 t By hung

... = string [/code] 搜索代码: [code] $xs = new XS('data.ini'); $search = $xs->getSearch(); $query = $fields['query']; $from = $fields['from']; $to = $fields['to']; $search->setQuery($query); $search->addRange('use_year', $from , $to); $docs = $search->search(); print_r($search->co...

25.为什么我这样写查不出结果集?

发布时间:2013-03-23 08:03 t By gaochunmeng

require_once './lib/XS.php'; $xs = new XS('demo'); $search = $xs->search; $docs = $search->search('cat_ids:108 a'); ---------------------------------------------------------- project.name = demo project.default_charset = utf-8 server.index = 8383 server.search = 8384 [goods...

26.为什么我这样写查不出结果集?

发布时间:2013-03-23 08:03 t By gaochunmeng

require_once './lib/XS.php'; $xs = new XS('demo'); $search = $xs->search; $docs = $search->search('cat_ids:108 a'); ---------------------------------------------------------- project.name = demo project.default_charset = utf-8 server.index = 8383 server.search = 8384 [goods...

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

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

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

28.留下评论出现错误

发布时间:2014-05-14 22:05 t By qiuxis

Error 500 CDbCommand 无法执行 SQL 语句: SQLSTATE[HY000]: General error: 1364 Field 'goodnum' doesn't have a default value http://www.xunsearch.com/doc/php/guide/search.count

29.RE: 时间戳排序不生效的问题

发布时间:2014-06-09 14:06 t By live

问题已经解决了 把count()在search()之后就可以了。

30.util/Indexer.php 只索引了mysql数据库的一部分数据

更新时间:2014-09-16 15:09 t By gagamomo

1、配置文件search.ini [code] project.name = search project.default_charset = utf-8 server.index = 8383 server.search = 8384 [ID] type = id [title] type = title [content] type = body [/code] 2、索引 [code] util/Indexer.php --source=mysql://root:pwd@localhost/dede --sql="SELECT ID, title, c...

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