...址 ../../../../../ 无法确认出错的文件 建议修改成 [php] public static function getRelPath($file) { $from = getcwd(); $file = realpath($file); if (is_dir($file)) { $pos = false; $to = $file; } else { ...
...ass XSDatabaseSQLite3 » XSDatabase 版本 1.0.0 源代码 sdk/php/util/XSDataSource.class.php 面向对象的 SQLite3 扩展 Public 方法 隐去继承来的方法 名称描述定义于 close() 关闭数据库 XSDatabaseSQLite3 connect() 打开数...
...ySQL » XSDatabasePDO » XSDatabase 版本 1.0.0 源代码 sdk/php/util/XSDataSource.class.php PDO.MySQL 实现 Protected 属性 隐去继承来的属性 名称类型描述定义于 obj XSDatabasePDO Public 方法 隐去继承来的方法 ...
...eturn} XSIndex 返回自身对象以支持串接操作 源码: sdk/php/lib/XSIndex.class.php#L220 (显示) public function del($term, $field = null){ // get field $field = $field === null ? $this->xs->getFieldId() : $this->xs->getField($field); // get commands $cmds = array(); ...
...败 0 条 [/code] 搜索结果与时间: [code] [root@~ util]# php /data/xunsearch/sdk/php/util/Quest.php db_product 21世纪高职高专财经类系列教材 在 2,005,593 条数据中,大约有 23 条包含 21世纪高职高专财经类系列教材 ,第 1-10 条,用时:0.0121 ...
Index.php中在180行才settimeout(0),解决问题需要在刚开始实例化XS的时候,就settimeout(0)
[root@VM71 php]# util/Indexer.php --source=csv --clean demo Object id #9 #0 lib/XS.php(2080): XSServer->read(8) #1 lib/XS.php(2065): XSServer->getRespond() #2 lib/XS.php(2042): XSServer->execCommand(Array, 201) #3 lib/XS.php(2003): XSServer->setProject('demo') #4 lib/XS.php(...
en Indexer.php 里默认就是设为0的啊,自己做导入程序的话默认是5秒,如果时间很长需要自己设置 0 表示永不超时,直到主动关闭。
...令行建索引使用xcache,会抛异常 [XSErrorException] ../lib/XS.php(431): xcache_get(): xcache.var_size is either 0 or too small to enable var data caching(2) #0 [internal function]: xs_error_handler(2, 'xcache_get(): x...', '/usr/local/xuns...', 431, Array) 如果只是缓存配置文...
... {return} array 可用于高亮显示的词条列表 源码: sdk/php/lib/XSSearch.class.php#L515 (显示) public function terms($query = null, $convert = true){ $query = $query === null ? '' : $this->preQueryString($query); if ($query === '' && $this->_terms !== null) { $ret ...