搜索

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

101.自定义分词器

...kens($value, XSDocument $doc = null) { $ret = array(); if (!empty($value)) $ret = explode('-', $value); return $ret; } } ~~~ > note: [XSTokenizer::getTokens] 的参数 `$value` 的编码始终为 UTF-8 。 如果您需要编写带有参数支持的分词...

102.XSDatabaseMySQL::connect

...= isset($param['pass']) ? $param['pass'] : ini_get('mysql.default_pw'); if (($this->link = mysql_connect($host, $user, $pass)) === false) { throw new XSException("Can not connect to mysql server: '$user@$host'"); } if (!mysql_select_db($param['dbname'], $this->link)) { $this->...

103.XSDatabasePgSQL

...php/util/XSDataSource.class.php#L569 (显示) public function close(){ if (is_resource($this->link)) { pg_close($this->link); $this->link = null; }} 关闭数据库连接 connect() 方法 public void connect($param) $param 源码: sdk/php/util/XSDataS...

104.RE: 英文模糊搜索问题

发布时间:2013-07-31 15:07 t By homingway

... 1; // 默认切分长度 public function __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(); //如果词的总...

105.XSDatabaseMySQLI::connect

...ult_port'); $this->obj = new mysqli($host, $user, $pass, '', $port); if ($this->obj->connect_error) { throw new XSException("Can not connect to mysql server: '$user@$host'"); } if (!$this->obj->select_db($param['dbname'])) { $this->close(); throw new XSException("Can...

106.XSSearch::getHotQuery

...r()); try { $this->setDb(self::LOG_DB)->setLimit($limit); if ($type !== 'lastnum' && $type !== 'currnum') { $type = 'total'; } $result = $this->search($type . ':1'); foreach ($result as $doc) /* @var $doc XSDocument */ { $body = $doc->body;...

107.XSTokenizerScws

...izer.class.php#L188 (显示) public function __construct($arg = null){ if (self::$_server === null) { $xs = XS::getLastXS(); if ($xs === null) { throw new XSException('An XS instance should be created before using ' . __CLASS__); } self::$_server = $xs->get...

108.XSSearch::getQuery

...p, $query); $res = $this->execCommand($cmd, XS_CMD_OK_QUERY_STRING); if (strpos($res->buf, 'VALUE_RANGE') !== false) { $regex = '/(VALUE_RANGE) (\d+) (\S+) (.+?)(?=\))/'; $res->buf = preg_replace_callback($regex, array($this, 'formatValueRange'), $res->buf); } if (strpos($r...

109.scws1.1.2 安装错误

更新时间:2010-05-12 17:05 t By gaoomei

...-o together... yes checking for system library directory... lib checking if compiler supports -R... no checking if compiler supports -Wl,-rpath,... yes checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking target system type... x8...

110.XSSearch::setFacets

...示) 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 ...

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