... 子类 XS, XSCommand, XSServer 版本 1.0.0 源代码 sdk/php/lib/XS.class.php XS 组件基类 封装一些魔术方法, 以实现支持模拟属性 模拟属性通过定义读取函数, 写入函数来实现, 允许两者缺少其中一个 这类属性可以跟正常定义的...
...h getSearch() {return} XSSearch 搜索操作对象 源码: sdk/php/lib/XS.class.php#L431 (显示) public function getSearch(){ if ($this->_search === null) { $conns = array(); if (!isset($this->_config['server.search'])) { $conns[] = 8384; } else { ...
...eturn} XSIndex 返回自身对象以支持串接操作 源码: sdk/php/lib/XSIndex.class.php#L306 (显示) public function delSynonym($raw, $synonym = null){ $raw = strval($raw); $synonym = $synonym === null ? '' : strval($synonym); if ($raw !== '') { $cmd = new XSCommand(XS...
...触迅搜. 不知道能不能接受 多字段搜索呢? 我的方法: [php] public function getShopRows($array = array()){ Yii::import('application.vendors.sdk.php.lib.XS'); $xs = new XS('shop'); $query = "regionId:".$array['regionId']; //return $query;exit; ...
...turn} XSSearch 返回自身对象以支持串接操作 源码: sdk/php/lib/XSSearch.class.php#L444 (显示) public function setScwsMulti($level){ $level = intval($level); if ($level >= 0 && $level < 16) { $cmd = array('cmd' => XS_CMD_SEARCH_SCWS_SET, 'arg1' => XS_CMD_SCWS_SET_M...
...turn} XSSearch 返回对象本身以支持串接操作 源码: sdk/php/lib/XSSearch.class.php#L147 (显示) public function setSynonymScale($value){ $arg1 = XS_CMD_SEARCH_MISC_SYN_SCALE; $arg2 = max(0, (intval($value * 100) & 255)); $cmd = new XSCommand(XS_CMD_SEARCH_SET_MISC, $arg...
...til 继承关系 class XSUtil 版本 1.0.0 源代码 sdk/php/util/XSUtil.class.php XSUtil 工具程序通用代码 Public 方法 隐去继承来的方法 名称描述定义于 convertIn() 把用户输入的字符串转换为 UTF-8 编码 XSUtil c...
//保护迅搜文件 include SRCPATH.'libs/xunsearch/lib/XS.php'; $this->temp_db = $ci->load->database ( $table_db_array[$table], TRUE ); //建立 XS 对象 $xs = new XS($project_name); //获取 索引对象 $index = $xs->index; $doc = new XSDocument; $result = array(); ...
为什么我到这一步 就不动了呢 ./sdk/php/util/Indexer.php --source=csv --clean demo [root@localhost home]# ls lnmp0.9-full lnmp.log lost+found wwwlogs lnmp0.9-full.tar.gz location www wwwroot [root@localhost home]# cd wwwroot [root@localhost wwwroot]# ls ftp index.h...
为什么我到这一步 就不动了呢 ./sdk/php/util/Indexer.php --source=csv --clean demo [root@localhost home]# ls lnmp0.9-full lnmp.log lost+found wwwlogs lnmp0.9-full.tar.gz location www wwwroot [root@localhost home]# cd wwwroot [root@localhost wwwroot]# ls ftp index.h...