搜索

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

261.XSSearch::addQueryString

...0.xx ~ 655.35 {return} string 修正后的搜索语句 源码: sdk/php/lib/XSSearch.class.php#L949 (显示) public function addQueryString($query, $addOp = XS_CMD_QUERY_OP_AND, $scale = 1){ $query = $this->preQueryString($query); $bscale = ($scale > 0 && $scale != 1) ? pack('n', i...

262.RE: 关于使用过程的权限控制问题

更新时间:2014-09-30 00:09 t By qiuxis

...怎么解决? 错误:[XSException] ../../../../usr/local/xunsearch/sdk/php/lib/XS.php(2481): Permission denied(C#13, localhost:8384) [/quote] 原因是防火墙的问题。 你可以先试 #setenforce 0 然后在打开你的搜索页,搜索看看,这时候能正常搜索了 那可...

263.XSSearch::setFacets

... {return} XSSearch 返回对象本身以支持串接操作 源码: sdk/php/lib/XSSearch.class.php#L401 (显示) public function setFacets($field, $exact = false){ $buf = ''; if (!is_array($field)) { $field = array($field); } foreach ($field as $name) { $ff = $this-...

264.XSTokenizerScws::__construct

...NULL) $arg string 复合等级参数,默认不指定 源码: sdk/php/lib/XSTokenizer.class.php#L188 (显示) public function __construct($arg = null){ if (self::$_server === null) { $xs = XS::getLastXS(); if ($xs === null) { throw new XSException('An XS ins...

265.XSCommand::__construct

... $buf1 string 字符串内容1, 最大长度为 255字节 源码: sdk/php/lib/XSServer.class.php#L62 (显示) public function __construct($cmd, $arg1 = 0, $arg2 = 0, $buf = '', $buf1 = ''){ if (is_array($cmd)) { foreach ($cmd as $key => $value) { if ($key === 'arg' || ...

266.XS::convert

...换前的字符集 {return} mixed 转换后的数据 源码: sdk/php/lib/XS.class.php#L550 (显示) public static function convert($data, $to, $from){ // need not convert if ($to == $from) { return $data; } // array traverse if (is_array($data)) { foreach ($...

267.XSSearch::getRelatedQuery

...为 20 {return} array 返回搜索词组成的数组 源码: 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 ($q...

268.XSServer::connect

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

269.全文检索 tokenizer = full 时,无法查询

发布时间:2013-09-04 16:09 t By hongjh

...enizer = full 2. 导入相关数据 require_once '/usr/local/xunsearch/sdk/php/lib/XS.php'; $xs = new XS('goods'); $data = array( 'goods_id' => 112, 'goods_name' => 'hello my goodsname', 'goods_sn' => 'RX8899-114' ); $doc = new XSDocument; $doc->setFields($data); ...

270.XSDocument 文档

...果文档是指 [XSSearch::search] 返回值包含的文档,它由 `PHP-SDK` 内部代码创建。 除了普通文档的功能外,还支持以下魔术方法来访问搜索结果的元数据: - `docid()` 取得搜索结果文档的 docid 值 (实际数据库内的 id,一般用不到) - `ran...

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