[root@localhost xunsearch]# util/Indexer.php --source=test.csv --clean demo 清空现有索引数据 ... 初始化数据源 ... test.csv [XSException] util/XSDataSource.class.php(49): Undefined data source type: `test.csv' #0 Indexer.php(241): XSDataSource::instance('test.csv', NULL) #1 {main}...
[root@web www]# /usr/local/php/bin/php /home/www/www.it486586.com/crontab/index.php hour xs_clear PHP Fatal error: Uncaught [XSException] www.it486586.com/data/api/xs/lib/XS.php(2443): Connection refused(C#111, 127.0.0.1:8383) thrown in /home/www/www.it486586.com/data/api/xs/lib/XS.php on line ...
...} elseif (!strncmp($conn, 'file://', 7)) { // write-only for saving index exchangable data to file // NOTE: this will cause file content be turncated $conn = substr($conn, 7); if (($sock = @fopen($conn, 'wb')) === false) { throw new XSException('Failed to open ...
...->execCommand(Object(XSCommand), 250) #2 /data/abchosting/trunkey/wwwroot/index.php(110): XSIndex->update(Object(XSDocument)) #3 {main}
...就退出了。:@ 代码参考: [php] // 宣布开始重建索引 $index->beginRebuild(); // 然后在此开始添加数据 ... $index->add($doc); ... // 告诉服务器重建完比 $index->endRebuild();[/php] 我的代码应该没有问题, 目前我使用了先清空,再...
索引管理器 `Indexer` 作为索引管理工具,提供了批量索引导入、清空索引、刷新索引队列、日志等各项功能, 导入索引支持数据源包括:`csv, json, mysql, sqlite` 等,也可以自定义数据源。 运行脚本工具的 --help 选项可查...
...@@@@@ 2012-11-30 07:41:01 update(ps:这里可能是add,update,delete) index num : 1 ************************** Array ( [0] => Array ( [element_id] => 1388 [element_title] => xxxxxxxxxxxxxxxxxxxxxxxxxxxxx [element_content] => yyyyyyyyyyyyyyy...
...去掉之后,就可以正常导入。 我输入命令符的时候 util/Indexer.php --source=json cusabio_cn_fix /var/www/fix/file1.txt -c gbk 报错误为 WARNING: invalid line #1 - Empty array INFO: reach end of the file, total lines: 1 Íê³ÉË÷Òýµ¼È룺³É¹¦ 0 Ìõ£¬Ê§...
...construct(8383) #4 ../usr/local/xunsearch/sdk/php/lib/XS.php(251): XS->getIndex(8383, Object(XS)) #5 Indexer.php(155): XSComponent->__get() #6 {main}
...有目录 目录下没有文件 咋回事呢 /var/xunsearch/sdk/php/util/Indexer.php --source=mysql://root:root@192.168.1.700/test --sql="SELECT id, uid FROM test" --project="/var/xunsearch/sdk/php/app/person.ini" 开始批量导入数据 (请直接输入数据) ... 完成索引导入:成功 338...