...情况下,显示的total为 310条 [code]# php Quest.php ~/dev/config/search/question.ini --query="answered:0 AND (status:0 OR status:1)" --limit 120,30|head -n 1 在 1,525 条数据中,大约有 310 条包含 answered:0 AND (status:0 OR status:1) ,第 121-150 条,用时:0.0234 秒。 ...
...段 b_split_title [b_split_title] type = title tokenizer =coupon $search->setQuery( '(b_split_title:宠物 OR 宠物 ) AND b_city_id:31')->setlimit(1000000)->setFacets('b_tag_id')->search(); 打印: Xapian::Query(((or:(pos=1) AND 宠物:(pos=2) AND and:(pos=3) AND (b_city_id:(pos=4) PHR...
...cated. ==30624== For counts of detected errors, rerun with: -v ==30624== searching for pointers to 3 not-freed blocks. ==30624== checked 67,208 bytes. ==30624== ==30624== 6 bytes in 3 blocks are definitely lost in loss record 1 of 1 ==30624== at 0x401D38B: malloc (vg_replace_malloc.c:149) ...
oh 谢谢!我试试[hr] require_once '/mnt/search/sdk/php/lib/XS.php'; $xs = new XS('test'); $skey = $_GET["skey"]; $search = $xs->search; $docs = $search->setQuery($skey."type:1")->search(); print_r($docs); 已经 [type] type = string index = self 了 但是搜索不到什么 改成...
1、安装时候编辑xunsearch-ver/src index.h 可以适当调低提交数量,比如3000减少为1000 search.h 进程数量可以改高点,初始内存默认即可 search.cc 最大内存128可以改到640M 2、搜索词过滤 如果搜索词不包含任何字母数字汉字,仅仅...
...://www.bigxu.com bigxu@foxmail.com # example : ./check.sh http://www.xunsearch.com/site/search?q=demo RE /data/www/xunsearch/bin/xs-ctl.sh /hom/bigxu/xu_restart.log > /dev/null 2>&1 & try_times=5 if [[ $1 == 'help' || $4'x' == 'x' ]] then echo "arg1 try:url,example http://www.xunse...
1 安装xunsearch wget http://www.xunsearch.com/download/xunsearch-full-latest.tar.bz2 tar xjvf xunsearch-full-latest.tar.bz2 #目前是1.3.1 cd xunsearch-full-1.3.1/ sh setup.sh #默认装在/usr/local/xunsearch 2 启动xunsearch /usr/local/xunsearch/bin/xs-ctl.sh -b 对外ip(我是内网,用的...
//执行语句 $gSearch->setFuzzy()->setQuery($name)->addWeight('ranking','1')->setLimit($gNum,$startPage)->search(); //执行结果 Xapian::Query((疯:(pos=1) AND_MAYBE GD1))[hr] //输出结果 [0] => XSDocument Object ( [_data:XSDocument:private] => Array ...
...数据失败 - Missing value of primarky key (FIELD:pid) #0 /usr/local/xunsearch/sdk/php/util/Indexer.php(195): XSIndex->update(Object(XSDocument)) sql语句: sql="select c.contentid,c.status,b.contentid from phpcms_content c,phpcms_c_news b where c.contentid=b.contentid and c.status=99" ...
昨天的日志如下 [quote] 2013-09-08 01:00:32 searchd[21752] ALERT server start (BIND:127.0.0.1:8384) 2013-09-08 01:00:32 searchd[21752] ALERT spawned child worker[1] (PID:21758) 2013-09-08 01:00:32 searchd[21752] ALERT spawned child worker[2] (PID:21759) 2013-09-08 01:00:32 searchd[21752] ...