搜索

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

31.RE: 搜索区间过滤 addRange不起 作用

发布时间:2011-12-09 15:12 t By vist2007

...num)->setSort('post_time',true)->setQuery($q); print_r($search->query); $docs = $search->search(); print_r结果:Xapian::Query(波:(pos=1)) $docs 中的user_id 并没有限制在 1,20000....

32.当搜索不设置关键字的时候,type = numeric 的字段会乱码

发布时间:2014-04-10 18:04 t By sundyandy

...关键字设为空了 $xs = new XS($project); $search = $xs->search; $docs = $search->setQuery()->search(); 会提示setQuery 缺少参数,看了源码,原来写法是setQuery($query) 手工改成 $docs = $search->setQuery(NULL)->search(); 结果中所有type = numeric 的字段...

33.XSTokenizerScws

...分词结果 getTokens() 方法 public void getTokens($value, $doc=NULL) $value $doc 源码: sdk/php/lib/XSTokenizer.class.php#L220 (显示) public function getTokens($value, XSDocument $doc = null){ $tokens = array(); $this->setIgnore(true); // save chars...

34.XSSearch

... XSSearch setDb() 设置要搜索的数据库名 XSSearch setDocOrder() 设置结果按索引入库先后排序 XSSearch setFacets() 设置分面搜索记数 XSSearch setFuzzy() 开启模糊搜索 XSSearch setLimit() 设置搜索结果的数量和偏移 XSSe...

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

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

...arch.php中的代码: $xs = new XS(`demo`); $search = $xs->search; $doc = $search->search("项目"); print_r($doc) 但是运行的时候报错,请问有可能是什么原因呢? Fatal error: Uncaught [XSErrorException] /search.php(5): Undefined index: key(8) thrown in /home/boyce/xun...

36.XSTokenizerXlen

... } }} getTokens() 方法 public void getTokens($value, $doc=NULL) $value $doc 源码: sdk/php/lib/XSTokenizer.class.php#L116 (显示) public function getTokens($value, XSDocument $doc = null){ $terms = array(); for ($i = 0; $i < strlen($value); $i +=...

37.XSTokenizerXstep

... } }} getTokens() 方法 public void getTokens($value, $doc=NULL) $value $doc 源码: sdk/php/lib/XSTokenizer.class.php#L147 (显示) public function getTokens($value, XSDocument $doc = null){ $terms = array(); $i = $this->arg; while (true) { ...

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

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

.../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_id] type = id ...

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

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

.../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_id] type = id ...

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

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

...$search->setQuery($query); $search->addRange('use_year', $from , $to); $docs = $search->search(); print_r($search->count()); [/code] 不管怎么设置$from跟$to,显示的总数都基本是一样的,实际总数只有打印的总的一半甚至更少,误差很大。 尝试修改过...

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