...eta fromConfig() 解析字段对象属性 XSFieldMeta getCustomTokenizer() 获取自定义词法分析器 XSFieldMeta hasCustomTokenizer() 判断当前字段是否采用自定义分词器 XSFieldMeta hasIndex() 判断当前字段是否需要索引 XSFieldMeta hasI...
getTokens() 方法 public void getTokens($value, $doc=NULL) $value $doc 源码: sdk/php/lib/XSTokenizer.class.php#L220 (显示) public function getTokens($value, XSDocument $doc = null){ $tokens = array(); $this->setIgnore(true); // save charset, force to use...
... type = string index = both [user_id] type = numeric index = self tokenizer = full [post_time] type = numeric index = self tokenizer = full [forward] type = numeric index = self tokenizer = full [reply_num] type = numeric index = self tokenizer = full xunsearch服务...
...php 扩展。从 `1.3.1` 版本起,`Xunsearch` 的 PHP-SDK 中加入 [XSTokenizerScws] 类,可通过搜索服务端执行分词功能。 用法简单说明 ---------- 这儿只做简单介绍和示范,更多详细的用法请点击阅读类参考手册 [XSTokenizerScws]。 #### 创建分...
...hm/xs-searchd.sock [id];图片ID主键 唯一 type = id index = none tokenizer = none cutlen = 0 weight = 0 phrase = no non_bool = no [title];图片属于哪个图集的题标 非唯一 但每个图集题标都是唯一 type = title;我可以设置为string? index = both;如果type ...
最简单的道理,在全文检索中由词"token"反向查询文档“doc", 所以能不能找到的本质在于是否建立了 token-->doc 的关联索引;而用启输入的 query 也一样是拆分成 token去检索。 很多人问为什么”梨子“可以检索到,但”梨“检索...
... $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 == ...
... [pid] type = id index = none tokenizer = none [uid] type = string tokenizer = full index = self weight = 5 [tag] type = title [chrono] type = n...
...-8 server.index = 8383 server.search = 8384 [xsid] type = id [pid] tokenizer = full type = numeric index = self [tid] type = string index = self tokenizer = full [fid] type = string index = self tokenizer = full [title] index = both type = title [content] index = mixed...
...ndex=both [content] type = body index = mixed [lv1] index = self tokenizer = full [lv2] index = self tokenizer = full [lv3] index = self tokenizer = full [school_id] index = self tokenizer = full [sort] type=numeric index=none [update_time] type=numeric index=none ...