使用postman操作ElasticSearch

下載安裝好postman之後  

添加索引blog1(因爲ElasticSearch是restful請求所以我們用postman發送http請求給ElasticSearch)

{
    "mappings":{
        "article":{
            "properties":{
                "id":{
                    "type":"long",
                    "store":"true",
                    "index":"true"
                },
                "title":{
                    "type":"text",
                    "store":"true",
                    "index":"true",
                    "analyzer":"standard"
                },
                "context":{
                    "type":"text",
                    "store":"true",
                    "index":"true",
                    "analyzer":"standard"
                }
            }
        }
    }
    
}

響應成功

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章