...eturn} 结果数组, 没有更多数据时返回 false 源码: sdk/php/util/XSDataSource.class.php#L220 (显示) protected function getDataList(){ if ($this->limit <= 0) { return false; } $sql = $this->sql . ' LIMIT ' . min(self::PLIMIT, $this->limit) . ' OFFSET ' . $this->o...
... XSTokenizerScws 返回对象本身以支持串接操作 源码: sdk/php/lib/XSTokenizer.class.php#L256 (显示) public function setIgnore($yes = true){ $this->_setting['ignore'] = new XSCommand(XS_CMD_SEARCH_SCWS_SET, XS_CMD_SCWS_SET_IGNORE, $yes === false ? 0 : 1);...
...) {return} bool 是返回 true, 不是返回 false 源码: sdk/php/lib/XSFieldScheme.class.php#L345 (显示) public function isBoolIndex(){ if ($this->flag & self::FLAG_NON_BOOL) { return false; } return (!$this->hasIndex() || $this->tokenizer !== XSTokenizer::DFL);} ...
...ring() {return} string 异常的简要描述信息 源码: sdk/php/lib/XS.class.php#L67 (显示) public function __toString(){ $string = '[' . __CLASS__ . '] ' . $this->getRelPath($this->getFile()) . '(' . $this->getLine() . '): '; $string .= $this->getMessage() . ($this->getCode(...
... XSTokenizerScws 返回对象本身以支持串接操作 源码: sdk/php/lib/XSTokenizer.class.php#L316 (显示) public function setDuality($yes = true){ $this->_setting['duality'] = new XSCommand(XS_CMD_SEARCH_SCWS_SET, XS_CMD_SCWS_SET_DUALITY, $yes === false ? 0 : ...
我用的是scws[PHP-5.4.x (40KB,VC9,NTS)] 分词模块。其中的代码我都没改。我对“调用 segment 方法执行词汇切割”进行分词,分词结果为“Array ( [0] => 璋 [1] => 冪 [2] => 敤 [3] => segment [4] => 鏂 [5] => 规 [6] => 硶 [7] => 鎵 [8] => ц [9] => [10]...
...为/usr/local/xunsearch 所有配置文件和http://www.xunsearch.com/doc/php/guide/ini.guide保持一致 搜索配置文件,sample.ini [code]project.name = sample project.default_charset = GBK ;server.index = 8383 ;server.search = 8384 [pid] type = id [subject] type = title [me...
php Indexer.php --info -p /var/www/xunsearch/goods.ini 查询项目信息显示: 数据库名:db 队列数据:1条 导入进程:无 每$index->add($doc) 一下队列数就增加1,但是$search->getDbTotal() 仍然是0 所以每次增加数据都不成功,请问一下是什么原...
... string 要执行的 SQL 语句 {return} mixed 源码: sdk/php/util/XSDataSource.class.php#L843 (显示) public function query($sql){ //echo "[DEBUG] SQL: $sql\n"; $res = $this->obj->query($sql); if ($res === false) { $info = $this->obj->errorInfo(); throw new...
不能正确分词,测试代码在 Windows php5 下运行正常 纠结问题所在 原话:“喜讯:谷歌中国宣布将关闭两大服务 终止与天涯合作” 分词结果:“谷歌中 宣布 关闭两” Windows 下分词就是正确的 分词结果:“喜讯 谷歌 中国 宣布 ...