... if ($this->type == self::TYPE_ID) { $this->flag = self::FLAG_INDEX_SELF; $this->tokenizer = 'full'; } elseif ($this->type == self::TYPE_TITLE) { $this->flag = self::FLAG_INDEX_BOTH | self::FLAG_WITH_POSITION; $this->weight = ...
...4 (显示) public function hasIndexSelf(){ return ($this->flag & self::FLAG_INDEX_SELF) ? true : false;} 判断当前字段是否需要在字段区索引
... if ($this->type == self::TYPE_ID) { $this->flag = self::FLAG_INDEX_SELF; $this->tokenizer = 'full'; } elseif ($this->type == self::TYPE_TITLE) { $this->flag = self::FLAG_INDEX_BOTH | self::FLAG_WITH_POSITION; $this->weight = ...