elasticsearch在postman中创建复杂索引

 body,所选类型为raw和JSON,写的代码为

{
    "settings":{
           "number_of_shards":1,
           "number_of_replicas":2,
           "index":{
                  "analysis":{
                         "analyzer":{
                                "default":{
                                       "tokenizer":"standard",     
                                       "filter":[ 
                                              "asciifolding",
                                              "lowercase",
                                              "ourEnglishFilter"
                                       ]
                                }
                         },
                         "filter":{
                                "ourEnglishFilter":{
                                       "type":"kstem"
                                }
                         }
                  }
           }
    }
}

猜你喜欢

转载自www.cnblogs.com/blue-rain/p/12422146.html