..._first=false) $field string 依据指定字段的值排序, 设为 null 则用默认顺序 $asc bool 是否为正序排列, 即从小到大, 从少到多, 默认为反序 $relevance_first bool 是否优先相关性排序, 默认为否 {return} XSSearch 返回对象本...
...emo RE /data/www/xunsearch/bin/xs-ctl.sh /hom/bigxu/xu_restart.log > /dev/null 2>&1 & try_times=5 if [[ $1 == 'help' || $4'x' == 'x' ]] then echo "arg1 try:url,example http://www.xunsearch.com/site/search?q=demo " echo "arg2 res_content,example:RE (content of arg1 must include ar...
... $name = 'XSTokenizer' . ucfirst($this->tokenizer); $arg = null; } if (!class_exists($name)) { $file = $name . '.class.php'; if (file_exists($file)) { require_once $file; } else if (file_exists(XS_LIB_ROOT . DIRECTORY_SEPA...
...); scws_send_text(s, text, strlen(text)); cur = top = scws_get_tops(s, 10, NULL); while (cur != NULL) { printf("WORD: %s, weight:%.2f, times:%d, attr:%.2s\n", cur->word, cur->weight, cur->times, cur->attr); cur = cur->next; } scws_free_tops(top); scws_free(s);
... scws_send_text(s, text, strlen(text)); cur = top = scws_get_tops(s, 10, NULL); while (cur != NULL) { printf("WORD: %s, weight:%.2f, times:%d, attr:%.2s\n", cur->word, cur->weight, cur->times, cur->attr); cur = cur->next; } scws_free_tops(top); scws_free(s); [/quote] 实在是太好...
... $fid = $this->xs->getFieldId(); $key = $doc->f($fid); if ($key === null || $key === '') { throw new XSException('Missing value of primary key (FIELD:' . $fid . ')'); } // request cmd $cmd = new XSCommand(XS_CMD_INDEX_REQUEST, XS_CMD_INDEX_REQUEST_ADD); if ($add !== true) {...
...t(int $code, string $message, string $file, int $line, Exception $previous=NULL) $code int 出错代码 $message string 出错信息 $file string 出错所在文件 $line int 出错所在的行数 $previous Exception 源码: sdk/php/lib/XS.class.php#L134 ...
...caught SIGINT, shutdown gracefully 2012-03-30 09:40:33 worker3[10481] get NULL pointer from pipe, shutdown gracefully 2012-03-30 09:40:33 worker2[10480] get NULL pointer from pipe, shutdown gracefully 2012-03-30 09:40:33 worker3[10481] event server end 2012-03-30 09:40:33 worker1[10982] get NULL...
deinit() 方法 protected void deinit() 源码: sdk/php/util/XSDataSource.class.php#L384 (显示) protected function deinit(){ if ($this->fd) { fclose($this->fd); $this->fd = null; }}
init() 方法 protected void deinit() 源码: sdk/php/util/XSDataSource.class.php#L384 (显示) protected function deinit(){ if ($this->fd) { fclose($this->fd); $this->fd = null; }}