...offset不是最后一页的情况下,显示的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 ...
参考这个: http://bbs.xunsearch.com/showthread.php?tid=397 另外发现a.bb bb.a a.b.c这样的形式查询超慢无比 按照hightman的说法: [i]hightman(海? 15:28:33 . 是相当于加引号,连接符 hightman(海? 15:28:57 "a.b.c.d" 这样就要求 A后面紧跟B再紧跟...
近期 php5.4.x 已经正式发布,已有网友在使用并汇报说 scws 的 PHP 扩展无法编译通过。 刚看了一下,因为 5.4.x 起 php 移除了 safe_mode 导致一些代码错误不通过编译,简单修改补丁如下,请大家先手动修改一下,稍后 scws-1.1.10 发...
...会直接返回所有搜索结果,http://www.xunsearch.com/demo/search.php?q=%21@@&f=_all&s=relevance 可以测试这个看,可以考虑强行判断,不包含就让搜索词为空,进行相应处理 如 if(!preg_match('/([0-9a-z]{2,2})/i')) Header('Location: /'); 3、继续搜索词过...
[php]bash-3.2$ php sdk/php/util/Quest.php spj example_attr:small50 --show-query -------------------- 解析后的 QUERY 语句:Xapian::Query((ZHsmall:(pos=1) AND 50:(pos=2)))[/php] 搜不到任何结果?
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 了 但是搜索不到什么 改成...
[code]loading@opensuse:~/Downloads/scws/scws-1.2.1/phpext> ./configure --with-scws=/usr/local/scws --with-php-config=/usr/bin/php-config configure: loading site script /usr/share/site/x86_64-unknown-linux-gnu checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... ...
...装步骤,却发现出错了: 看代码: [code] [root@localhost phpext]# ./configure --with-scws=/usr/local/scws/ --with-php-config=/usr/local/php5/bin/php-config checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for a sed that does...
hi, i got a big problem, my env is php5.3.3/apache/2.2.17 all x64bit, now, all my service is ok but the php_scws.dll, run php got error: ------------------------------------------ PHP Warning: PHP Startup: Unable to load dynamic library 'D:\home\php\ext\php_s cws.dll' - %1 is not a valid Win32 ...
... lib, it can be run on 32bit xp, but when used it on 64bit it still alert: php_scws.dll %1 is not a valid Win32 application.~~~ hightman, i want to compile the lib with 64bit, does it run?[hr] by the way, the code is ansi based standard, and when i compile it on OSI standard with vs9, it's appear...