analysis模块也是es索引的关键模块,在索引和检索的过程中都会使用到这个模块,尤其是需要根据业务场景自定义的情形,以下是我学习中总结的脑图
补充下如何分析分词结果:
POST _analyze
{
"analyzer": "whitespace", //分词器名称
"text": "The quick brown fox." //要分词的内容
}
或这种:
POST _analyze
{
"tokenizer": "standard",
"filter": [ "lowercase", "asciifolding" ],
"text": "The 2 QUICK Brown-Foxes jumped over the lazy dog's bone."
}