搜索

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

1.XSFieldMeta::toConfig

...b/XSFieldScheme.class.php#L452 (显示) public function toConfig(){ // type $str = "[" . $this->name . "]\n"; if ($this->type === self::TYPE_NUMERIC) { $str .= "type = numeric\n"; } elseif ($this->type === self::TYPE_DATE) { $str .= "type = date\n"; } elseif ($this->typ...

2.XSFieldScheme

...>name . '\''); } if ($field->isSpeical()) { if (isset($this->_typeMap[$field->type])) { $prev = $this->_typeMap[$field->type]; throw new XSException('Duplicated ' . strtoupper($config['type']) . ' field: `' . $field->name . '\' and `' . $prev . '\''); } ...

3.XSFieldMeta::isSpeical

...me.class.php#L367 (显示) public function isSpeical(){ return ($this->type == self::TYPE_ID || $this->type == self::TYPE_TITLE || $this->type == self::TYPE_BODY);} 判断当前字段是否为特殊类型 特殊类型的字段是指 id, title, body, 每个项目至多只能有一个这种类...

4.XSFieldMeta::fromConfig

...Scheme.class.php#L514 (显示) public function fromConfig($config){ // type & default setting if (isset($config['type'])) { $predef = 'self::TYPE_' . strtoupper($config['type']); if (defined($predef)) { $this->type = constant($predef); if ($this->type == se...

5.XSFieldScheme::logger

...= null) { $scheme = new self; $scheme->addField('id', array('type' => 'id')); $scheme->addField('pinyin'); $scheme->addField('partial'); $scheme->addField('total', array('type' => 'numeric', 'index' => 'self')); $scheme->addField('lastnum', array('type' => '...

6.XSFieldMeta

...范围:[0-9A-Za-z-_], 长度控制在 1~32 字节为宜 XSFieldMeta type int 字段类型 XSFieldMeta vno int 字段序号 取值为 0~255, 同一字段方案内不能重复, 由 XSFieldScheme::addField 进行确定 XSFieldMeta weight int 混合区检索时的相对权...

7.XSFieldScheme::getFieldId

...class.php#L46 (显示) public function getFieldId(){ if (isset($this->_typeMap[XSFieldMeta::TYPE_ID])) { $name = $this->_typeMap[XSFieldMeta::TYPE_ID]; return $this->_fields[$name]; } return false;} 获取主键字段元数据

8.XSFieldScheme::addField

...>name . '\''); } if ($field->isSpeical()) { if (isset($this->_typeMap[$field->type])) { $prev = $this->_typeMap[$field->type]; throw new XSException('Duplicated ' . strtoupper($config['type']) . ' field: `' . $field->name . '\' and `' . $prev . '\''); } ...

9.XSFieldScheme::checkValid

...显示) public function checkValid($throw = false){ if (!isset($this->_typeMap[XSFieldMeta::TYPE_ID])) { if ($throw) { throw new XSException('Missing field of type ID'); } return false; } return true;} 判断该字段方案是否有效、可用 每个方...

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