开箱即用 || 自定义 分析器
可以在索引和查询时使用不同的分析器
可以再搜索过程的每个阶段选择处理数据的方式
simple 基于非字母字符来分离所提供的值,并将其转换为小写形式
stop 除了simple功能,还能基于所提供的停用词stop word过滤数据
keyword 无操作分析器
The keyword
analyzer is a “noop” analyzer which returns the entire input string as a single token.
Keyword Analyzer | Elasticsearch Reference [6.4] | Elastic https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-keyword-analyzer.html
POST _analyze { "analyzer": "keyword", "text": "The 2 QUICK Brown-Foxes jumped over the lazy dog's bone." }
The above sentence would produce the following single term:
[ The 2 QUICK Brown-Foxes jumped over the lazy dog's bone. ]
standard 大多数欧洲语言的标准分析器
snowball 类似于standard分析器,但提供了词干提取算法(stemming algorithm)