cmd 属性 public int $cmd; 命令代码 通常是预定义常量 XS_CMD_xxx, 取值范围 0~255
cutlen 属性 public int $cutlen; 剪取长度 (单位:字节) 用于在返回搜索结果自动剪取较长内容的字段, 默认为 0表示不截取, body 型字段默认为 300 字节
type 属性 public int $type; 字段类型
vno 属性 public int $vno; 字段序号 取值为 0~255, 同一字段方案内不能重复, 由 XSFieldScheme::addField 进行确定
weight 属性 public int $weight; 混合区检索时的相对权重 取值范围: 1~63, title 类型的字段默认为 5, 其它字段默认为 1
dbTotal 属性 只读 public int getDbTotal() 获取搜索数据库内的数据总量
hotQuery 属性 只读 public array getHotQuery(int $limit=6, string $type='total') 获取热门搜索词列表
lastCount 属性 只读 public int getLastCount() 获取最近那次搜索的匹配总数估值
relatedQuery 属性 只读 public array getRelatedQuery(string $query=NULL, int $limit=6) 获取相关搜索词列表
...示) public function getConnString(){ $str = $this->_conn; if (is_int($str) || is_numeric($str)) { $str = 'localhost:' . $str; } elseif (strpos($str, ':') === false) { $str = 'unix://' . $str; } return $str;}