搜索

大约有 277 项符合查询结果, 库内数据总量为 3,513 项。 (搜索耗时:0.0991秒)

141.XSSearch::setFacets

... $field = array($field); } foreach ($field as $name) { $ff = $this->xs->getField($name); if ($ff->type !== XSFieldMeta::TYPE_STRING) { throw new XSException("Field `$name' cann't be used for facets search, can only be string type"); } $buf .= chr($ff->vno...

142.XSTokenizerScws::setIgnore

...nizer.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 $this;} 设置忽略标点符号

143.XSIndex::__destruct

...lib/XSIndex.class.php#L528 (显示) public function __destruct(){ if ($this->_rebuild === true) { try { $this->endRebuild(); } catch (Exception $e) { } } foreach (self::$_adds as $srv) { $srv->close(); } self::$_adds = array(); pa...

144.XSServer::__construct

...#L143 (显示) public function __construct($conn = null, $xs = null){ $this->xs = $xs; if ($conn !== null) { $this->open($conn); }} 构造函数, 打开连接

145.XSFieldMeta::__construct

...php#L298 (显示) public function __construct($name, $config = null){ $this->name = strval($name); if (is_array($config)) { $this->fromConfig($config); }} 构造函数

146.XSTokenizerScws::setDuality

...izer.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 : 1); return $this;} 设置散字二元组合

147.XSDocument::beforeSubmit

...s.php#L331 (显示) public function beforeSubmit(XSIndex $index){ if ($this->_charset === null) { $this->_charset = $index->xs->getDefaultCharset(); } return true;} 重写接口, 在文档提交到索引服务器前调用 继承此类进行重写该方法时, 必须调用 parent...

148.XSDatabasePDO::query

... public function query($sql){ //echo "[DEBUG] SQL: $sql\n"; $res = $this->obj->query($sql); if ($res === false) { $info = $this->obj->errorInfo(); throw new XSException('SQLSTATE[' . $info[0] . '] [' . $info[1] . '] ' . $info[2]); } $ret = $res->fetchAll(PDO::FETCH_ASSO...

149.XSIndex::setDb

...php/lib/XSIndex.class.php#L439 (显示) public function setDb($name){ $this->execCommand(array('cmd' => XS_CMD_INDEX_SET_DB, 'buf' => $name), XS_CMD_OK_DB_CHANGED); return $this;} 更改存放索引数据的目录 默认索引数据保存到服务器上的 db 目录, 通过此方法修改...

150.RE: 二元分词问题

更新时间:2011-11-15 13:11 t By icebolt

... $terms = array(); for ($i = 0; $i < mb_strlen($value,"utf-8"); $i += $this->arg) { $terms[] = mb_substr($value, $i, $this->arg,"utf-8"); } return $terms; } hightman可以改成这个,那中文一元切分就也可以了 [hr] 建议:目前开放的都是php api,如果能...

  • 时间不限
  • 按相关性排序