搜索

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

311.XSSearch::getRelatedQuery

...搜索词组成的数组 源码: sdk/php/lib/XSSearch.class.php#L707 (显示) public function getRelatedQuery($query = null, $limit = 6){ $ret = array(); $limit = max(1, min(20, intval($limit))); // Simple to disable query with field filter if ($query === null) { $query = $th...

312.XSServer::connect

... protected void connect() 源码: sdk/php/lib/XSServer.class.php#L452 (显示) protected function connect(){ // connect to server $conn = $this->_conn; if (is_int($conn) || is_numeric($conn)) { $host = 'localhost'; $port = intval($conn); } elseif (!strncmp($conn, 'file...

313.XSFieldScheme::addField

...段的配置内容 源码: sdk/php/lib/XSFieldScheme.class.php#L139 (显示) public function addField($field, $config = null){ if (!$field instanceof XSFieldMeta) { $field = new XSFieldMeta($field, $config); } if (isset($this->_fields[$field->name])) { throw new XSExcepti...

314.XSUtil::parseOpt

...一放入 '-' 的子数组 源码: sdk/php/util/XSUtil.class.php#L108 (显示) public static function parseOpt($valued = array()){ $result = array('-' => array()); $params = isset($_SERVER['argv']) ? $_SERVER['argv'] : array(); for ($i = 0; $i < count($params); $i++) { if ($para...

315.XSSearch::setSort

...身以支持串接操作 源码: sdk/php/lib/XSSearch.class.php#L289 (显示) public function setSort($field, $asc = false, $relevance_first = false){ if (is_array($field)) { return $this->setMultiSort($field, $asc, $relevance_first); } if ($field === null) { $cmd = new X...

316.XSSearch::getExpandedQuery

...搜索词组成的数组 源码: sdk/php/lib/XSSearch.class.php#L755 (显示) public function getExpandedQuery($query, $limit = 10){ $ret = array(); $limit = max(1, min(20, intval($limit))); try { $buf = XS::convert($query, 'UTF-8', $this->_charset); $cmd = array('cmd' =>...

317.修正utf-8版make_xdb_file.php的错误

发布时间:2011-06-09 09:06 t By itlong

...显是有错误码的,提示93行处的TF、IDF、Attr不存在,这明显示是:“[b]对分词再分词[/b]”带来的结果,在65行处看到only support GBK dictionary 到80行,这是不参对utf-8字符处理的,不能对中文(中英混合)字符进行mb_substr($word, 0, $len)切...

318.XSJsonDataSource::getDataList

...d 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($buf) === 0) { break; ...

319.scws分词乱码问题,求解

发布时间:2012-07-17 16:07 t By wainilxx7

...是编码格式的问题,代码用的是gbk,我没改,看了下网页显示编码也是用的gbk。 然后我用记事本打开XDB 格式的词典文件dict.xdb,效果如下: XDB"/B ? ?? 悯H@   % G ! ? ! p # Z  #  ! ? # ? ) ? ! ? !  ! ? % ? ! ? ! ;* # P- # -0 ! ...

320.XSSearch::addRange

...身以支持串接操作 源码: sdk/php/lib/XSSearch.class.php#L349 (显示) public function addRange($field, $from, $to){ if ($from === '' || $from === false) { $from = null; } if ($to === '' || $to === false) { $to = null; } if ($from !== null || $to !== null) { ...

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