一、什么是分词器
切分词语,normalization(提升recall召回率)。
给你一段句子,将这段句子拆分成一个个单个的单词,同时对这些单词进行normalization(时态转换、单复数转换、同义词转换等)
recall:召回率,搜索的时候增加能够搜索到的结果的数量
组成:
1、character filter:在一段文本进行分词之前,先进行预处理,过滤掉H5标签,&符号转换成and单词
2、tokenizer:分词
3、token filter:normalization相关的一些操作,去除不用词(a the an等)
处理好的结果拿去建立倒排索引
二、内置分词器
| Set the shape to semi-transparent by calling set_trans(5) | |
|---|---|
| standard analyzer(默认) | set the shape to semi transparent by calling set_trans 5 |
| simple analyzer | set the shape to semi transparent by calling set trans |
| whitespace analyzer | Set the shape to semi-transparent by calling set_trans(5) |
| language analyzer | set shape semi transpar call set_tran 5 |
