... $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; } elseif ($this->type == ...
hasCustomTokenizer() 方法 public bool hasCustomTokenizer() {return} bool 是返回 true, 不是返回 false 源码: sdk/php/lib/XSFieldScheme.class.php#L403 (显示) public function hasCustomTokenizer(){ return ($this->tokenizer !== XSTokenizer::DFL);} 判断当前字段...
XSTokenizerScws All Packages | 方法(函数) 包 XS.tokenizer 继承关系 class XSTokenizerScws 实现接口 XSTokenizer 始于 1.3.1 版本 1.0.0 源代码 sdk/php/lib/XSTokenizer.class.php SCWS - 分词器(与搜索服务端通讯) Public ...
... $str .= "index = self\n"; } } } // tokenizer if ($this->type !== self::TYPE_ID && $this->tokenizer !== XSTokenizer::DFL) { $str .= "tokenizer = " . $this->tokenizer . "\n"; } // cutlen if ($this->cutlen > 0 && !($this->cutlen === 300 && $thi...
..._BOOL) { return false; } return (!$this->hasIndex() || $this->tokenizer !== XSTokenizer::DFL);} 判断当前字段的索引是否为布尔型 目前只有内置分词器支持语法型索引, 自 1.0.1 版本起把非索引字段也视为布尔便于判断
...nion ../../storage/myisam/myisamdef.h:304: error: syntax error before '}' token ../../storage/myisam/myisamdef.h:570: error: syntax error before '*' token ../../storage/myisam/myisamdef.h:759: error: syntax error before "MYISAM_SHARE" ../../storage/myisam/myisamdef.h:762: error: syntax error bef...
... $value = $field->val($value); if (!$field->hasCustomTokenizer()) { // internal tokenizer $wdf = $field->weight | ($field->withPos() ? XS_CMD_INDEX_FLAG_WITHPOS : 0); if ($field->hasIndexMixed()) { $cmds[] = new XS...
... $value = $field->val($value); if (!$field->hasCustomTokenizer()) { // internal tokenizer $wdf = $field->weight | ($field->withPos() ? XS_CMD_INDEX_FLAG_WITHPOS : 0); if ($field->hasIndexMixed()) { $cmds[] = new XS...