搜索

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

111.XSSearch::setCutOff

...($percent))); $weight = max(0, (intval($weight * 10) & 255)); $cmd = new XSCommand(XS_CMD_SEARCH_SET_CUTOFF, $percent, $weight); $this->execCommand($cmd); return $this;} 设置百分比/权重剔除参数 通常是在开启 setFuzzy 或使用 OR 连接搜索语句时才需要设置...

112.XSDatabaseDataSource

...? 3 : 1)); } elseif (!($param = parse_url($this->type))) { throw new XSException('Wrong format of DB connection parameter'); } else { if (isset($param['user'])) { $param['user'] = urldecode($param['user']); } if (isset($param['pass'])) { $param...

113.RE: Xunsearch 讯搜商品检索中多属性精确搜索疑问

更新时间:2014-12-29 20:12 t By liubo

... 多文档联查 setDb() 方法 可是,会报错哦。 $search = new XS('goods_a'); $key = 'ipad'; // $index = $search->index; // $index->setDb('goods_b'); $search->search->setDb('goods_b'); $docs = $search->search->setQuery($key)->search(); --------------------- error : 2376): C...

114.RE: search时报错 ,请帮看看是哪的问题

发布时间:2012-12-10 13:12 t By benq81

...序后查看了下执行后的日志: 2012-12-10 13:39:13 worker1[17463] new connection (SOCK:7, IP:127.0.0.1, BURST:1) 2012-12-10 13:39:13 worker1[17463] [sock:7] add new task (CONN:0x38c6160, SPARE:6, TOTAL:6) 2012-12-10 13:40:33 worker1[17463] [sock:7] unknown ERROR during executing task (CMD:6...

115.XSDatabaseMySQL

...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->close(); throw new XSException("Can not switch to database name: '{$param[...

116.XSTokenizerXlen

...l($arg); if ($this->arg < 1 || $this->arg > 255) { throw new XSException('Invalid argument for ' . __CLASS__ . ': ' . $arg); } }} getTokens() 方法 public void getTokens($value, $doc=NULL) $value $doc 源码: sdk/php/lib/XSTokenizer...

117.Xunsearch SDK for PHP

...ini') // 创建 XS 对象,关于项目配置文件请参见官网 $xs = new \XS('demo'); // 后面的代码就和官网上的指南一致了 ``` ### Yii-1.x 用法 这是对 xunsearch 的一个简单封装,使之更适合 yii-1.x 的用法习惯。首先, 在应用入口文件最开头引...

118.XSTokenizerXstep

...l($arg); if ($this->arg < 1 || $this->arg > 255) { throw new XSException('Invalid argument for ' . __CLASS__ . ': ' . $arg); } }} getTokens() 方法 public void getTokens($value, $doc=NULL) $value $doc 源码: sdk/php/lib/XSTokenizer...

119.XSDatabasePgSQL

...param['pass']}"; if (!($this->link = @pg_connect($dsn))) { throw new XSException('Error connecting to PGSQL database:' . $param['dbname'] . '.'); pg_set_error_verbosity($this->link, PGSQL_ERRORS_DEFAULT); pg_query('SET standard_conforming_strings=off'); }} query() ...

120.搜索概述

...的索引对象: ~~~ [php] require '$prefix/sdk/php/lib/XS.php'; $xs = new XS('demo'); // 建立 XS 对象,项目名称为:demo $search = $xs->search; // 获取 搜索对象 ~~~ > info: 搜索对象内置了字符集智能转换,如果您使用的字符集和项目默认的字符集 [XS::d...

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