搜索

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

11.讯搜怎么连接数据库的,没看到连接数据库啊?

发布时间:2014-04-27 19:04 t By wtwei

...据库里面有这个关键词的 $xs = new XS('question'); $search = $xs->search; $index = $xs->index; $query = '健身'; // 这里的搜索语句很简单,就一个短语 $search->setQuery($query); // 设置搜索语句 $search->addWeight('title', '运动'); /...

12.数据导入 乱码问题

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

13.XSException 异常

...efix/sdk/php/lib/XS.php'; try { $xs = new XS('demo'); $docs = $xs->search->setQuery('hightman')->setLimit(5)->search(); foreach ($docs as $doc) { echo $doc->rank() . ". " . $doc->subject . " [" . $doc->percent() . "%]\n"; echo $doc->message . "\n"; } } catch (XSExce...

14.RE: 关于XS:getExpandedQuery() 方法,获取展开的搜索词列表

发布时间:2011-12-06 17:12 t By popfeng

...uid = $_GET['uid']; $tag = $_GET['tag']; $xs = new XS('demo'); $search = $xs->search; $search->setCharset('UTF-8'); $search->setQuery('uid:' . $uid); $docs = $search->search(); $terms = $search->getExpandedQuery($tag); 然后对...

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

更新时间: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');

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

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

...本身没有错。但希望你能附全代码,实在不行可以在 $search->search()之前或之后打印 $search->query 的值看看实际检索条件 [/quote] 按照你说的 [user_id] type = numeric index = none tokenizer = full $xs = new XS('entry'); $search = $xs->getSearch()...

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

更新时间:2011-10-21 19:10 t By 3左3右

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

18.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();[/php] 不知这样...

19.关于指定搜索项中,空格的问题

更新时间:2012-04-05 10:04 t By 鸭梨山大

...pe是这样的 1.ccc|aaa bbb 2.ddd 代码这样的 docs = $search->search('type: [color=#FF4500]"[/color]aaa bbb[color=#FF0000]"[/color] OR type:ddd '); docs = $search->search('type: aaa bbb OR type:ddd '); 这两种查询方式都是一样 只能查出type 是ddd的 第二条 求...

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

发布时间:2011-10-22 16:10 t By hightman

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

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