[root@localhost ~]# /data/server/php/bin/php /data/web/sftest/php/util/Indexer.php --rebuild --source=mysql://root:123456@localhost/test --sql="SELECT * FROM documents" --project=demo 开始重建索引 ... 初始化数据源 ... mysql://root:123456@localhost/test [XSException] [color=#FF0000]...
[root@hp php]# util/Indexer.php --source=csv --clean demo [XSException] lib/XS.php(2092): Failed to create home directoy of the project(S#508) #0 lib/XS.php(2067): XSServer->execCommand(Array, 201) #1 lib/XS.php(2028): XSServer->setProject('demo') #2 lib/XS.php(2011): XSServer->open('8383') #3 ...
按照http://www.xunsearch.com/doc/php/guide/start.demo的指导, [code]cd $prefix/sdk/php util/Indexer.php --source=csv --clean demo[/code] 提示如下: /usr/bin/env: php: No such file or directory 请问是什么原因?
...入用了group by 后 只能导入2条了 [quote][root@FPDev util]# php Indexer.php --rebuild --source=mysql://root:@localhost/shop --sql="select g.goods_id,g.cat_id,g.goods_name,g.en_goods_name,g.goods_short_name,g.en_goods_short_name,g.brand_id,g.shop_price,g.goods_brief,g.en_goods_brief,g.good...
...件如下 project.name = entry project.default_charset = UTF-8 server.index = 10.1.20.51:8383 server.search = 10.1.20.51:8384 [tblog_entry_id] type = id [content] type = string index = both [user_id] type = numeric index = self tokenizer = full [post_time] type = numeric in...
/usr/local/xunsearch/sdk/php/util/Indexer.php --rebulid --source=mysql://u:p@127.0.0.1/test --sql="SELECT movie_id,movie_name,movie_starring,movie_director,movie_description,movie_list_img_url,movie_insert_time FROM movie" --project=movie [XSException] ../../usr/local/xunsearch/sdk/php/lib/XS...
...样的一个错,不像是String的问题: [root@localhost php]# util/Indexer.php --source=csv --clean demo PHP Notice: Uninitialized string offset: 0 in /www/xunsearch/run/sdk/php/lib/XS.php on line 367 PHP Notice: Uninitialized string offset: 0 in /www/xunsearch/run/sdk/php/lib/XS.php on...
/usr/local/php/bin/php /usr/local/xunsearch/sdk/php/util/Indexer.php --rebuild --source=mysql://root:123456@127.0.0.1/test --sql="select * from pw_record" --project=record 以上是默认mysql 端口号为3306 导入命令 但是, 现在我的mysql 端口号是6630 在--source=mysql://roo...
A、/util/Indexer.php --rebuild --source --sql="SELECT" --project=demo B、$index->beginRebuild(); foreach ($data as $k => $v) { $doc = new XSDocument; $doc->setFields($v); $index->update($doc); } $index->endReb...
util/Indexer.php --source=csv --clean demo 报错 WARNING invalid csv line #2 改怎么解决啊!