... (!s || !s->txt) return 0; __PARSE_XATTR__; // save the offset. (cnt -> return_value) off = s->off; cnt = s->off = 0; while (!cnt && (cur = res = scws_get_result(s)) != NULL) { do { /* check attribute filter */ ...
...ed to read exdata from file'); } // try to check allowed (BUG: check the first cmd only): // XS_CMD_IMPORT_HEADER, XS_CMD_INDEX_REQUEST, XS_CMD_INDEX_REMOVE, XS_CMD_INDEX_EXDATA $first = ord(substr($data, 0, 1)); if ($first != XS_CMD_IMPORT_HEADER && $first != XS_CMD_INDEX_...
...] ../../../../usr/local/xunsearch/sdk/php/lib/XS.php(2448): Failed to recv the data from server completely (SIZE:0/8, REASON:closed) #0 /usr/local/xunsearch/sdk/php/lib/XS.php(2385): XSServer->read(8) #1 /usr/local/xunsearch/sdk/php/lib/XS.php(2367): XSServer->getRespond() #2 /usr/local/xunsearch/sd...
...for a sed that does not truncate output... /usr/local/bin/sed checking whether ln -s works... yes checking whether make sets $(MAKE)... (cached) yes checking how to run the C preprocessor... cc -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/g...
...ing for uuid/uuid.h... no checking for uuid.h... no configure: error: Neither uuid/uuid.h nor uuid.h found - required for brass, chert and flint (you may need to install the uuid-dev, libuuid-devel or e2fsprogs-devel package) -----[/code] 解决办法:sudo apt-get install uuid-dev 2.freeb...
..., chert and flint (you ma y need to install the zlib1g-dev or zlib-devel package) ----- ERROR: failed to configure xapian-core-scws, see 'setup.log' for more detail 查看安装目录 root@localhost:~# ls -i /etc/xunsearch/bin 789769 scws 789770 scws-gen-dict 789...
... 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_rule...
...ceof XSCommand) { $cmd = new XSCommand($cmd); } // just cache the cmd for those need not answer if ($cmd->cmd & 0x80) { $this->_sendBuffer .= $cmd; return true; } // send cmd to server $buf = $this->_sendBuffer . $cmd; $this->_sendBuffer = ''; $this->writ...
...ion in effect. File(/usr/local/xunsearch/sdk/php/lib/XS.php) is not within the allowed path(s): (/home/wwwroot/mesh:/tmp) in /home/wwwroot/mesh/public_html/so/search.php on line 11 Warning: require_once(/usr/local/xunsearch/sdk/php/lib/XS.php) [function.require-once]: failed to open stream: Opera...
...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_text(...