搜索

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

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

发布时间: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...

32.区间搜索(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...

33.XS::getScwsServer

... if ($this->_scws === null) { $conn = isset($this->_config['server.search']) ? $this->_config['server.search'] : 8384; $this->_scws = new XSServer($conn, $this); } return $this->_scws;} 创建 scws 分词连接

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

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

...没有在url里面传值。。。。 demo 项目在本地可以运行 search.php中的代码: $xs = new XS(`demo`); $search = $xs->search; $doc = $search->search("项目"); print_r($doc) 但是运行的时候报错,请问有可能是什么原因呢? Fatal error: Uncaught [XSError...

35.数据导入 乱码问题

发布时间:2011-11-25 17:11 t By vist2007

xunsearch 1.1.0 数据库mysql 字符集 utf8 配置文件如下 project.name = entry project.default_charset = UTF-8 server.index = 10.1.20.51:8383 server.search = 10.1.20.51:8384 [tblog_entry_id] type = id [content] type = string index = both [user_id] type = numeric index = s...

36.搜索条件可以使数组吗?

发布时间:2012-05-25 17:05 t By latsu

...Id:".$array['regionId']; //return $query;exit; $ShopDoc = $xs->search->setCharset('UTF-8')->setLimit(1000, 0)->search($query);//我现在想再search里传入数组,进行多字段的查询...不知道怎么实现呢? $shopRows = array(); $fields = $xs->getAllFields(); ...

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

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

想列出所有数据,看了http://bbs.xunsearch.com/showthread.php?tid=349&pid=4427#pid4427这个帖子,把关键字设为空了 $xs = new XS($project); $search = $xs->search; $docs = $search->setQuery()->search(); 会提示setQuery 缺少参数,看了源码,原来写法是setQuery(...

38.RE: xs-searchd 锁死

发布时间:2013-03-15 11:03 t By tree_star

用siege测试,启20个search worker,200个连接去压测,运行一段时间后,进程就挂掉,重启的时候,search master停不掉

39.RE: 按字段搜索排序

更新时间:2013-06-08 13:06 t By hpxl

...语句可以用于查询商品属性非常方便,结贴了。 [php]$search = $xs->search->setFuzzy(); 1.$docs = $search->setQuery('cid:hello,world')->search(); 2.$docs = $search->addQueryTerm('cid', 'hello')->addQueryTerm('cid', 'world')->search(); 3.$docs = $xs->search->setQuery('cid:hello,...

40.在winodws 使用xunsearch的问题

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

...sdk目录都粘贴下到本地中,修改了demo.ini server.index server.search 为ip:XXXX require $_SERVER['DOCUMENT_ROOT'].'sdk/php/lib/XS.php'; $xs = new XS($_SERVER['DOCUMENT_ROOT'].'sdk/php/app/demo.ini'); $docs = $xs->search->search('hightman'); print_r($docs); 结果出现 F...

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