...t/scws/libscws/scws.c,v retrieving revision 1.18 retrieving revision 1.19 diff -c -r1.18 -r1.19 *** libscws/scws.c 22 Oct 2010 11:09:46 -0000 1.18 --- libscws/scws.c 17 Jan 2011 07:29:38 -0000 1.19 *************** *** 328,333 **** --- 328,340 ---- { if (!SCWS_IS_DIGIT(ch)) { + ...
...Document.class.php#L108 (显示) public function __call($name, $args){ if ($this->_meta !== null) { $name = strtolower($name); if (isset($this->_meta[$name])) { return $this->_meta[$name]; } } throw new XSException('Call to undefined method `' . get_class($t...
...nction addTerm($field, $term, $weight = 1){ $field = strval($field); if (!is_array($this->_terms)) { $this->_terms = array(); } if (!isset($this->_terms[$field])) { $this->_terms[$field] = array($term => $weight); } elseif (!isset($this->_terms[$field][$term])) { ...
例如: $query = $xs->search->setQuery($keyword); if ($c1) { $query->addRange('c1',$c1,$c2); } if ($d1) { $query->addRange('d1',$d1,$d2); } $query->setMultiSort($sorts); $rs = $query->setLimit($perPage,$start)->search(); $count = $xs->search->getLastCount(); 这时$count不准确,我看过论坛...
...l/XSDataSource.class.php#L65 (显示) final public function getData(){ if ($this->dataPos === null || $this->dataPos === count($this->dataList)) { $this->dataPos = 0; $this->dataList = $this->getDataList(); if (!is_array($this->dataList) || count($this->dataList) === 0) { ...
...l){ //echo "[DEBUG] SQL: $sql\n"; $res = $this->obj->query($sql); if ($res === false) { throw new XSException('SQLITE3 ERROR(#' . $this->obj->lastErrorCode() . '): ' . $this->obj->lastErrorMsg()); } if (!is_object($res)) { $ret = $res; } else { $ret = array(); ...
... for ($i = $j = 0; $i < strlen($text) && $j < $size; $i++, $j++) { if ((ord($text[$i]) & 0xe0) === 0xe0) { if (($size - $j) == 1) { break; } $j++; $i += 2; } } return substr($text, 0, $i) . str_repeat($pad, $size - $j);}...
...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 arg2) " echo "arg3 path of xs...
...还是不行。 [root@estar scws-1.1.5]# patch -p0 libscws/scws.c < scws.diff patching file libscws/scws.c Hunk #1 FAILED at 328. Hunk #2 FAILED at 684. 2 out of 2 hunks FAILED -- saving rejects to file libscws/scws.c.rej 不知道我拷贝的scws.diff内容是不是有问题,如下: *** libs...
... content from pw_threads t left join pw_tmsgs tm on t.tid = tm.tid where t.ifcheck = 1 and t.fid != 0 and t.fid !=444 order by t.tid asc" --project=项目名 4 建立phpwind的索引队列 #建立队列表 mysql -uroot -p 你的phpwind数据库名 CREATE TABLE `mq` ( `mid` int(10) unsigned NOT NU...