... [code][root@a107 ~]# /usr/local/php/bin/php /usr/local/xunsearch/sdk/php/util/Indexer.php --project=xxx –-source=mysql://xxx:xxx@localhost/xxx --sql="select ID,post_title,post_content,UNIX_TIMESTAMP(post_date) as post_time from wp_posts where (post_status='publish' or post_status='pending') and ...
... 返回可用的参数值,若不存在则返回 null 源码: sdk/php/util/XSUtil.class.php#L161 (显示) public static function getOpt($short, $long = null, $extra = false){ if (self::$options === null) { self::parseOpt(); } $value = null; $options = self::$options; if (...
你好,感谢你的回复 以前使用sdk/util中的index.php重建索引是没有出现错误的,但随着数据库数据越来越多,就出现了这个错误,怀疑可能是连接超时导致的,就把180行这里原有的timeout设置成1000,错误依旧存在,昨天在论坛看了...
...否正常。 导入成功的时候说了失败0条。 [root@localhost util]# ./Quest.php wlg 北京 [XSException] ../lib/XS.php(2092): None of database avaiable(S#506) #0 ../lib/XS.php(1505): XSServer->execCommand(Object(XSCommand), 206) #1 Quest.php(221): XSSearch->search() #2 {main} ...
...ll to undefined function json_last_error() in /usr/local/xunsearch/sdk/php/util/XSDataSource.class.php on line 332 过滤器 debug 不显示 json导入出错
生成了索引库后,直接删除了索引文件,出现错误,怎么清空这个项目的所有数据,现在执行 [php] util/Indexer.php --source=csv changnetv8 --clean[/php] 时, 报[php][XSException] lib/XS.php(1898): DB has been rebuilding(S#407)[/php] 错误
/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...
...后,返回什么结果是正确的结果呢 /usr/local/xunsearch/sdk/php/util/Quest.php -p demo -c gbk -q 桌面 --limit=2 返回 Object id #10 0 ../lib/XS.php(2246): XSServer->read(8) 1 ../lib/XS.php(2231): XSServer->getRespond() 2 ../lib/XS.php(2208): XSServer->execCommand(Array, 201) 3 .....
...后,返回什么结果是正确的结果呢 /usr/local/xunsearch/sdk/php/util/Quest.php -p demo -c gbk -q 桌面 --limit=2 返回 Object id #10 0 ../lib/XS.php(2246): XSServer->read(8) 1 ../lib/XS.php(2231): XSServer->getRespond() 2 ../lib/XS.php(2208): XSServer->execCommand(Array, 201) 3 .....
/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...