已经查明原因了。php5.2.0以前__toString 只有在独立的 echo,print语句才有效,所以出现大量错误,经过仔细考量,决定将 xunsearch 的最底PHP要求提升到 php5.2.0
构建的搜索语句是 echo $search->getQuery($q); ------------------------------------------------------------ Xapian::Query(((F163:(pos=1) AND B海南:(pos=2)) FILTER H1))
...il/XSDataSource.class.php#L843 (显示) public function query($sql){ //echo "[DEBUG] SQL: $sql\n"; $res = $this->obj->query($sql); if ($res === false) { $info = $this->obj->errorInfo(); throw new XSException('SQLSTATE[' . $info[0] . '] [' . $info[1] . '] ' . $info[2]); } ...
...026'] 已经查明原因了。php5.2.0以前__toString 只有在独立的 echo,print语句才有效,所以出现大量错误,经过仔细考量,决定将 xunsearch 的最底PHP要求提升到 php5.2.0 [/quote] 好的,谢谢回复,我重装一下PHP试试。
.../XSDataSource.class.php#L582 (显示) public function query($query){ //echo "[DEBUG] SQL: $sql\n"; $res = pg_query($this->link, $query); if ($res === false) { throw new XSException('PgSQL ERROR: ' . pg_last_error($this->link)); } $ret = array(); while ($tmp = pg_fetch_assoc...
...il/XSDataSource.class.php#L654 (显示) public function query($sql){ //echo "[DEBUG] SQL: $sql\n"; $res = $this->obj->query($sql); if ($res === false) { throw new XSException('MySQL ERROR(#' . $this->obj->error . '): ' . $this->obj->errno); } if (!is_object($res)) { $re...
...建议,列出来看看;此情况就会得到 "测试" 这一建议 echo "您是不是要找:\n"; foreach ($corrected as $word) { echo $word . "\n"; } } /** * 以下拼写示例则简化,并直接传入 Query 语句进行测试 * 您也可以例句用 `util/Quest.php de...
...il/XSDataSource.class.php#L722 (显示) public function query($sql){ //echo "[DEBUG] SQL: $sql\n"; $res = sqlite_query($this->link, $sql); if ($res === false) { throw new XSException('SQLITE ERROR: ' . sqlite_error_string($this->link)); } if (!is_resource($res)) { $ret ...
...e.class.php#L990 (显示) public function process($data, $cs = false){ echo "\n----- DEBUG DATA INFO -----\n"; print_r($data); return $data;} processDoc() 方法 public void processDoc($doc) $doc 源码: sdk/php/util/XSDataSource.class.php#L997 (显示) public...
...il/XSDataSource.class.php#L511 (显示) public function query($sql){ //echo "[DEBUG] SQL: $sql\n"; $res = mysql_query($sql, $this->link); if ($res === false) { throw new XSException('MySQL ERROR(#' . mysql_errno($this->link) . '): ' . mysql_error($this->link)); } if (!is_resou...