...说过C#语言"; if (!(s = scws_new())) { printf("error, can't init the scws_t!\n"); exit(-1); } scws_set_charset(s, "gbk"); scws_set_dict(s, "/usr/local/scws/etc/dict.xdb", SCWS_XDICT_XDB); scws_set_rule(s, "/usr/local/scws/etc/rules.ini"); scws_send_text(s, text, st...
...onal signal[6], terminate immediately 2012-12-10 13:40:33 worker1[17463] deinit the thread pool 2012-12-10 13:40:33 worker1[17463] [sock:7] task canceld, run the cleanup (ZARG:0x7f56ff1f8bf0) 2012-12-10 13:40:33 worker1[17463] [sock:7] quit, result error (CODE:514) 2012-12-10 13:40:33 ~master[12533]...
... if (!(s = scws_new())) { printf("error, can't init the scws_t!\n"); exit(-1); } scws_set_charset(s, "gbk"); scws_set_multi(s, 1); scws_set_dict(s, "/usr/local/etc/dict_chs_gbk.xdb", SCWS_XDICT_MEM); scws_set...
...har *text = "上海市"; if (!(s = scws_new())) { printf("error, can't init the scws_t!\n"); exit(-1); } scws_set_charset(s, "utf-8"); scws_set_dict(s, "/usr/local/etc/dict.utf8.xdb", SCWS_XDICT_XDB); scws_set_rule(s, "/usr/local/etc/rules.utf8.ini"); scws_set_multi(s , 1); scws_send_...
...说过C#语言"; if (!(s = scws_new())) { printf("ERROR: cann't init the scws!\n"); exit(-1); } scws_set_charset(s, "utf8"); scws_set_dict(s, "/usr/local/scws/etc/dict.utf8.xdb", SCWS_XDICT_XDB); scws_set_rule(s, "/usr/local/scws/etc/rules.utf8.ini"); scws_send_text(s...
...l/xunsearch checking for correct libevent version... ok checking for event_init in -levent... yes checking for scws.h of scws... yes: /usr/local/xunsearch checking for scws_new in -lscws... yes checking for xapian.h of xapian-core... yes: /usr/local/xunsearch checking for correct xapian version... o...
...SELECT COUNT(*)...') #2 XSDataSource.class.php(33): XSDatabaseDataSource->init() #3 XSDataSource.class.php(48): XSDataSource->__construct('mysql://xxx', 'SELECT a.id,a.t...') #4 Indexer.php(206): XSDataSource::instance('mysql://xxx', 'SELECT a.id,a.t...') #5 {main} [hr] SELECT a.id,a.title,a.u...
...mp(s1, s2) stricmp(s1, s2) 4、scws.h中,加入导出修饰符 /* api: init the scws handler */ scws_t __declspec(dllexport) scws_new(); void __declspec(dllexport) scws_free(scws_t s); /* fork instance for multi-threaded usage, but they shared the dict/rules */ scws_t __declspec(dllexport)sc...
...rker3[21054] I came, happy to meet you 2012-05-22 16:17:04 worker3[21054] init the thread pool 2012-05-22 16:17:04 worker3[21054] event server start (FLAG:0x0004) 2012-05-22 16:17:05 worker3[21054] new connection (SOCK:7, IP:127.0.0.1, BURST:1) 2012-05-22 16:17:05 worker3[21054] new connection (...