elk学习笔记

配置分析器
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"] 
        }
      }
    }
  }
}
  

  

posted @ 2020-06-16 14:04  薛无道  阅读(149)  评论(0编辑  收藏  举报