搜索

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

1.RE: 索引库为空的时候报错

发布时间:2013-08-22 11:08 t By hightman

try { // your code } catch (XSException $e) { } 1.4.8-dev 从我们官网的下载中心就可以下载到啊

2.XSDatabaseSQLite3::connect

... $this->obj = new SQLite3($param['path'], SQLITE3_OPEN_READONLY); } catch (Exception $e) { throw new XSException($e->getMessage()); }} 打开数据库

3.XSIndex::__destruct

..._rebuild === true) { try { $this->endRebuild(); } catch (Exception $e) { } } foreach (self::$_adds as $srv) { $srv->close(); } self::$_adds = array(); parent::__destruct();} 析构函数 在此自动关闭开启的 rebuild

4.XSIndex::flushLogging

... $this->execCommand(XS_CMD_FLUSH_LOGGING, XS_CMD_OK_LOG_FLUSHED); } catch (XSException $e) { if ($e->getCode() === XS_CMD_ERR_BUSY) { return false; } throw $e; } return true;} 强制刷新服务端当前项目的搜索日志

5.搜索时出错!!!

更新时间:2012-08-03 11:08 t By renzhig

.../lib/XS.php'; $xs = new XS('demo'); $docs = $xs->search->search('15'); } catch (XSException $e) { echo $e; // 直接输出异常描述 if (defined('DEBUG')) // 如果是 DEBUG 模式,则输出堆栈情况 echo "\n" . $e->getTraceAsString() . "\n"; }

6.XSIndex::flushIndex

... $this->execCommand(XS_CMD_INDEX_COMMIT, XS_CMD_OK_DB_COMMITED); } catch (XSException $e) { if ($e->getCode() === XS_CMD_ERR_BUSY || $e->getCode() === XS_CMD_ERR_RUNNING) { return false; } throw $e; } return true;} 强制刷新服务端的当前库...

7.XSDatabasePDO::connect

...ass'] : ''; try { $this->obj = new PDO($dsn, $user, $pass); } catch (PDOException $e) { throw new XSException($e->getMessage()); }} 连接数据库 具体的每个类必须实现 makeDsn 来将参数转换为 dsn

8.XSIndex::stopRebuild

... 'arg1' => 2), XS_CMD_OK_DB_REBUILD); $this->_rebuild = false; } catch (XSException $e) { if ($e->getCode() !== XS_CMD_ERR_WRONGPLACE) { throw $e; } } return $this;} 中止索引重建 丢弃重建临时库的所有数据, 恢复成当前搜索库, 主要...

9.XS::getSearch

...->getDefaultCharset()); return $this->_search; } catch (XSException $e) { if (($i + 1) === count($conns)) { throw $e; } } } } return $this->_search;} 获取搜索操作对象

10.使用讯搜搭建phpwind的全文检索

更新时间:2012-05-18 09:05 t By myoula

... echo '200'; } } catch(XSException $e) { echo '500'; } 更新 try { $xs = new XS('projectname'); $index =...

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