...def); 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; $th...
_flag 属性 protected $_flag;
...ass.php#L129 (显示) public function setAutoSynonyms($value = true){ $flag = XS_CMD_PARSE_FLAG_BOOLEAN | XS_CMD_PARSE_FLAG_PHRASE | XS_CMD_PARSE_FLAG_LOVEHATE; if ($value === true) { $flag |= XS_CMD_PARSE_FLAG_AUTO_MULTIWORD_SYNONYMS; } $cmd = array('cmd' => XS_CMD_QUERY_PARSEFL...
...def); 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; $th...
... } // index if ($this->type !== self::TYPE_BODY && ($index = ($this->flag & self::FLAG_INDEX_BOTH))) { if ($index === self::FLAG_INDEX_BOTH) { if ($this->type !== self::TYPE_TITLE) { $str .= "index = both\n"; } } elseif ($index === self::FLAG_...
...) public function close($ioerr = false){ if ($this->_sock && !($this->_flag & self::BROKEN)) { if (!$ioerr && $this->_sendBuffer !== '') { $this->write($this->_sendBuffer); $this->_sendBuffer = ''; } if (!$ioerr && !($this->_flag & self::FILE)) { ...
...eme.class.php#L376 (显示) public function hasIndex(){ return ($this->flag & self::FLAG_INDEX_BOTH) ? true : false;} 判断当前字段是否需要索引
...heme.class.php#L335 (显示) public function withPos(){ return ($this->flag & self::FLAG_WITH_POSITION) ? true : false;} 判断当前字段索引是否支持短语搜索
...lass.php#L385 (显示) public function hasIndexMixed(){ return ($this->flag & self::FLAG_INDEX_MIXED) ? true : false;} 判断当前字段是否需要在混合区索引
...class.php#L394 (显示) public function hasIndexSelf(){ return ($this->flag & self::FLAG_INDEX_SELF) ? true : false;} 判断当前字段是否需要在字段区索引