... public function setFacets($field, $exact = false){ $buf = ''; if (!is_array($field)) { $field = array($field); } foreach ($field as $name) { $ff = $this->xs->getField($name); if ($ff->type !== XSFieldMeta::TYPE_STRING) { throw new XSException("Field `$na...
...mpatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... no checking for mawk... mawk checking whether make sets $(MAKE)... yes checking for gcc... no checking for cc... no checking for cl.exe... no configure: error: in `/home/macnie/scws-1.2.0':...
..., 如以下: strcpy(wmap[i][i]->attr, SCWS_IS_ALPHA(txt[start-1]) ? attr_en : attr_un); 2. 百分号这个暂时 scws 还没有办法处理,因为 % 号被当作普通符号粗分时就断开了,不过可以在粗分阶段就强制处理,希望 scws 的下一个...
... 192.168.5.180:8383 -k start,得到一个: WARNING: server[xs-indexd] is running (BIND:192.168.5.180:8383, PID:3961) 查看indexd.log: 2011-10-27 15:24:05 indexd[3961] can not get db by pid (PID:8501) 2011-10-27 16:35:55 indexd[3961] caught system signal[15], terminate immediately 2011-10-2...
...的文本是 utf8,则需要修改该程序的第一行,把 define('IS_UTF8_TXT', false); 改为 true php make_xdb_file.php [导入的文本文件] --- 关于文本文件的说明,每行一条记录,#开头表示注释,每条记录由 word、TF、IDF、Attr组成,其中...
...s checking whether cc accepts -g... yes checking for cc option to accept ISO C89... none needed checking how to run the C preprocessor... cc -E checking for icc... no checking for suncc... no checking whether cc understands -c and -o together... yes checking for system library directory... li...
...tion __construct($arg = null){ if ($arg !== null && $arg !== '') $this->length = $arg; } public function getTokens($value, XSDocument $doc=null){ $charset = is_object($doc) ? $doc->getCharset() : 'UTF-8'; $ret = array(); //如果词的总长度小于给定的长度,则直接返...
...tion __construct($arg = null){ if ($arg !== null && $arg !== '') $this->length = $arg; } public function getTokens($value, XSDocument $doc=null){ $charset = is_object($doc) ? $doc->getCharset() : 'UTF-8'; $ret = array(); //如果词的总长度小于给定的长度,则直接返...
$mongo = $this->getMondongo(); $wiki_repo = $mongo->getRepository("Wiki"); $wiki_date = new MongoDate(0); $xs = new XS('demo'); $index = $xs->index; while (true) { $wikis = $wiki_repo->find(array("query" => array("created_at" => array('$gt' => $wiki_date)), "sor...
getDataList() 方法 protected void getDataList() 源码: sdk/php/util/XSDataSource.class.php#L295 (显示) protected function getDataList(){ // read line (check to timeout?) $line = ''; while (true) { $buf = fgets($this->fd, 8192); if ($buf === false || strlen($bu...