配置分析器 PUT analyzer_index { "settings": { "analysis": { //字符过滤器 "char_filter": { "my_char_filter": { "type": "html_strip" } }, //分词过滤器 "filter": { "my_stopwords": { "type": "stop", "stopwords": ["a", "31个省"] } }, //分析器 "analyzer": { "my_analyzer": { //分词器 "tokenizer": "whitespace", //字符过滤器 "char_filter": ["my_char_filter"], //分词过滤器 "filter": ["my_stopwords"] } } } } }