English 分析器 #
english 分析器是为英语文本特别设计的语言分析器,包含了英语特定的处理规则和停用词。
分析器组成 #
该分析器由以下分词器和分词过滤器组成:
standard分词器:标准的文本分割lowercase分词过滤器:转换为小写stop分词过滤器:过滤英语停用词(the, a, an, and 等)porter_stem分词过滤器:英语词干提取
示例 #
POST _analyze
{
"analyzer": "english",
"text": "The quick brown foxes jumping over the lazy dogs"
}
分析结果 #
停用词(the, over 等)被移除,词根被提取:
[ "quick", "brown", "fox", "jump", "lazi", "dog" ]