使用postman创建es索引及映射

 

 

{
      
    "mappings" : {
            "properties":{
                "id":{
                    "type":"text"
                },
                "title":{
                    "type":"text",
                     "analyzer": "ik_max_word"
                    
                },
                "content":{
                    "type":"text",
                     "analyzer": "ik_max_word"
                },
                "publish_time":{
                    "type":"date"
                }
            }
    }
    
}
posted @ 2019-10-08 16:34  xiaopeng丶  阅读(5491)  评论(0编辑  收藏  举报