我写了更新从SQL SERVER中提取数据提交到XUNSEARCH的索引,但很不稳定,帮我看看,有没有用错方法之类的,谢谢了[attachment=5]
[quote='hightman' pid='642' dateline='1331712245'] 没有内置工具,你想办法读出数据再调用API装入就可以了 [/quote] 嗯,是的。我应该可以通过扩展原有的XSDatebase.class.php来增加链接sql serve来链接数据库,并执行查询, 然后通过XSDocument的...
初看一下很多问题啊,index_put() 函数里 $doc 没有声明? 而且你何必 del 再add为何不直接用 put
有声明啊,第14行 $doc = new XSDocument; del后再add是为了防止有重复的 请问一下HIGHTMAN,还有没有其它严重问题?[hr] 有声明啊,第14行 $doc = new XSDocument; del后再add是为了防止有重复的 请问一下HIGHTMAN,还有没有其它严重问题?
...pass)) === false) { throw new XSException("Can not connect to mysql server: '$user@$host'"); } if (!mysql_select_db($param['dbname'], $this->link)) { $this->close(); throw new XSException("Can not switch to database name: '{$param['dbname']}'"); } $this->setUtf8();} ...
...j->connect_error) { throw new XSException("Can not connect to mysql server: '$user@$host'"); } if (!$this->obj->select_db($param['dbname'])) { $this->close(); throw new XSException("Can not switch to database name: '{$param['dbname']}'"); } $this->setUtf8();} 连...
... 配置文件: project.name = html project.default_charset = utf-8 server.index = 8383 server.search = 8384 [pid] type = id [catid] type = numeric index = both tokenizer = full [subject] type = title [message] type = body [url] index = self tokenizer = full [chrono...
... error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'FROM_UNIXTIME (inputtime,'%Y%m%d' ) as inputtime,ad.content,c.catname,c.url as c' at line 1 #0 XSDataSource.class.php(454): XSDatabasePDO->query('SELECT COUNT(*)...') #1 XSDa...