...is->type === self::TYPE_BODY) { $str .= "type = body\n"; } // 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 .= "ind...
...f ($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 = 5; ...
...() 判断当前字段是否采用自定义分词器 XSFieldMeta hasIndex() 判断当前字段是否需要索引 XSFieldMeta hasIndexMixed() 判断当前字段是否需要在混合区索引 XSFieldMeta hasIndexSelf() 判断当前字段是否需要在字段区索引 XSField...
hasIndex() 方法 public bool hasIndex() {return} bool 若需要返回 true, 不需要则返回 false 源码: sdk/php/lib/XSFieldScheme.class.php#L376 (显示) public function hasIndex(){ return ($this->flag & self::FLAG_INDEX_BOTH) ? true : false;} 判断当前字段是...