...D) { $str .= "type = id\n"; } elseif ($this->type === self::TYPE_TITLE) { $str .= "type = title\n"; } elseif ($this->type === self::TYPE_BODY) { $str .= "type = body\n"; } // index if ($this->type !== self::TYPE_BODY && ($index = ($this->flag & self::FLAG_INDEX_BO...
getFieldTitle() 方法 public XSFieldMeta getFieldTitle() {return} XSFieldMeta 类型为 TITLE 的字段 源码: sdk/php/lib/XSFieldScheme.class.php#L59 (显示) public function getFieldTitle(){ if (isset($this->_typeMap[XSFieldMeta::TYPE_TITLE])) { $name = $this->_type...
...al(){ return ($this->type == self::TYPE_ID || $this->type == self::TYPE_TITLE || $this->type == self::TYPE_BODY);} 判断当前字段是否为特殊类型 特殊类型的字段是指 id, title, body, 每个项目至多只能有一个这种类型的字段
...a weight int 混合区检索时的相对权重 取值范围: 1~63, title 类型的字段默认为 5, 其它字段默认为 1 XSFieldMeta Public 方法 隐去继承来的方法 名称描述定义于 __construct() 构造函数 XSFieldMeta __toString() 将...
getFieldTitle() 方法 public XSFieldMeta getFieldTitle() {return} XSFieldMeta 类型为 TITLE 的字段 源码: sdk/php/lib/XS.class.php#L491 (显示) public function getFieldTitle(){ return $this->_scheme->getFieldTitle();} 获取当前标题字段
weight 属性 public int $weight; 混合区检索时的相对权重 取值范围: 1~63, title 类型的字段默认为 5, 其它字段默认为 1
... getFieldId() 获取主键字段元数据 XSFieldScheme getFieldTitle() 获取标题字段元数据 XSFieldScheme getIterator() IteratorAggregate 接口, 以支持 foreach 遍历访问所有字段 XSFieldScheme getVnoMap() 获取所有字段的vno与名称映映射关系...
... $this->tokenizer = 'full'; } elseif ($this->type == self::TYPE_TITLE) { $this->flag = self::FLAG_INDEX_BOTH | self::FLAG_WITH_POSITION; $this->weight = 5; } elseif ($this->type == self::TYPE_BODY) { $this->vno = XSFieldScheme::MIXED...
... XS fieldId XSFieldMeta 获取当前主键字段 XS fieldTitle XSFieldMeta 获取当前标题字段 XS index XSIndex 获取索引操作对象 XS name string 获取当前项目名称 XS scheme XSFieldScheme 获取当前在用的字段方案 XS s...