....index = x.x.x.160:8383 server.search = x.x.x.160:8384 使用 Index.php -p test --info 报错 #0 ../lib/XS.php(2025): XSServer->connect() #1 ../lib/XS.php(2011): XSServer->open('x.x.x.160:8...') #2 ../lib/XS.php(342): XSServer->__construct('x.x.x.160:8...', Object(XS)) #3 ../lib/XS.php(249): XS->get...
...free_result(res); } scws_free(s); } [/php] 结果如下: $ ./test Word: Hello/en (IDF = 4.02) Word: ,/un (IDF = 0.00) Word: Q/en (IDF = 0.00) Word: ,/un (IDF = 0.00) Word: C#/nz (IDF = 9.50) 中文没出来,是否我哪里没设对啊? 我的系统是centos 6 64位的
...L_ADDREF 執行另一支測試 回應的情況如下 SCWS 1.0.3 test file2. SimpledCWS Object ( [handle] => Resource id #2 ) 這個現象是否說明編譯完成的 scws.so 有問題?
... => newsid [1] => title ) ) [_config:private] => Array ( [project.name] => test [project.default_charset] => UTF-8 [server.index] => 8383 [server.search] => 8384 [newsid] => Array ( [type] => id ) [title] => Array ( [type] => title ) ) ) Fatal error: Uncaught [XSErrorException] xunsearch/sdk/php/l...
...e/hightman/scws/phpext/modules' Build complete. Don't forget to run 'make test'. [root@zjx phpext]# make install Installing shared extensions: /usr/local/php51/lib/php/extensions/no-debug-non-zts-20060613/ [root@zjx phpext]# ls 安装应该没错
...sleep 3 res=$(get_check_per $1) echo $try_times'testing .... ' fi done try_times=5 if [[ $res == "0" ]] then ps aux |grep -E "xs-[indexd|searched]" | awk '{print $2}' |grep -v $$ |xargs -i kill -9 {} $ctl_path start ...
.../code]假设 libscws 被放在 /path/to/libscws/ 中编译 编译:gcc -o test -I/path/to/libscws -L/path/to/libscws test.c -lscws -lm [b]完整的实例请参见相关的源码:scwsc 命仅行分词代码。[/b]
... # 导入 mysql 数据源 util/Indexer.php --source=mysql://root@localhost/test --sql="select * from tbl_post" # 导入 sqlite 数据源 util/Indexer.php --source=sqlite:///tmp/test.db --sql="select * from tbl_post" ~~~ 导入 CSV 数据 ------------- 要导入 CSV 数据库文件,必须使用 ...
...: Entering directory `/usr/local/xunsearch-full-1.0.1/xunsearch-1.0.1/src' test -z "xs-import xs-indexd xs-logging xs-searchd" || rm -f xs-import xs-indexd xs-logging xs-searchd rm -f user_mm.c rm -f *.o make[1]: Leaving directory `/usr/local/xunsearch-full-1.0.1/xunsearch-1.0.1/src' Making clean in...
...d] type = id [price] type = numeric 查询操作: hpxl@debian:~/test$ php sdk/php/util/Quest.php goods id:3122 --show-query [XSException] sdk/php/lib/XS.php(2455): Failed to recv the data from server completely (SIZE:0/8, REASON:timeout) #0 sdk/php/lib/XS.php(2395): XSServer->read(8) #...