... $cmd $res_arg $res_cmd 源码: sdk/php/lib/XSIndex.class.php#L44 (显示) public function execCommand($cmd, $res_arg = XS_CMD_NONE, $res_cmd = XS_CMD_OK){ $res = parent::execCommand($cmd, $res_arg, $res_cmd); foreach (self::$_adds as $srv) { $srv->execCo...
...记录数组, 不存在同义词则返回空数组 源码: sdk/php/lib/XSSearch.class.php#L187 (显示) public function getSynonyms($term){ $term = strval($term); if (strlen($term) === 0) { return false; } $cmd = array('cmd' => XS_CMD_SEARCH_GET_SYNONYMS, 'arg1' => 2, 'buf' =...
...:】 [29-Sep-2012 12:02:48] 致命的运行时错误(E_ERROR) Uncaught [XSException] ../../xunsearch/sdk/php/lib/XS.php(2204): Permission denied(C#13) thrown /var/www/xunsearch/sdk/php/lib/XS.php 2204
setRequireMatchedTerm() 方法 (自版本 v1.4.8 起可用) public XSSearch setRequireMatchedTerm(bool $value=true) $value bool 设为 true 表示开启返回, 设为 false 关闭该功能, 默认是不开启 {return} XSSearch 返回对象本身以支持串接操作 源码...
...getExpandedQuery方法时出现下面的错误: Fatal error: Uncaught [XSException] ../../../../search/sdk/php/lib/XS.php(2094): Couldn't stat 'data/dream/log_db'(S#515) thrown in /search/sdk/php/lib/XS.php on line 2094 请问是怎么回事呢?谢谢[hr] [root@localhost php]# util/Quest.ph...
例如: $query = $xs->search->setQuery($keyword); if ($c1) { $query->addRange('c1',$c1,$c2); } if ($d1) { $query->addRange('d1',$d1,$d2); } $query->setMultiSort($sorts); $rs = $query->setLimit($perPage,$start)->search(); $count = $xs->search->getLastCount(); 这时$count不准确,我看过论坛...
...h 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.xunsearch.com/site/search?q=demo " echo "arg2 res_content,...
感谢您的详细报告。 第一段错误,是XS本身引起的,目前最新版已经修正了这个问题,是一些NOTICE级别的错误,如果不方便重新安装建议先强制忽略 notice 错误,可以在 lib/XS.php 开头加一句 error_reporting(E_ALL ^ E_NOTICE); 第二,你...
...现在这俩文件权限是0755 但是连接出现 Fatal error: Uncaught [XSException] ../../../usr/local/hush/sdk/php/lib/XS.php(2177): Permission denied(C#13) thrown in /usr/local/hush/sdk/php/lib/XS.php on line 2177 chown -R www:www后则正常连接了
setCollapse() 方法 public XSSearch setCollapse(string $field, int $num=1) $field string 依据该字段的值折叠搜索结果, 设为 null 则取消折叠 $num int 折叠后只是返最匹配的数据数量, 默认为 1, 最大值 255 {return} XSSearch 返回对象...