curl -X POST -d @mapping.json + mapping not created

后端 未结 3 1168
滥情空心
滥情空心 2021-02-20 15:43

I am learning elasticsearch. I have specified the mapping in \'mapping.json\'. Its contents are

{
    \"book\" : {
         \"_index\" : {
             \"enabled         


        
3条回答
  •  南笙
    南笙 (楼主)
    2021-02-20 16:18

    command

    curl -XPUT localhost:9200/_template/logstash -d @/Users/template.json   
    

    response

    {"acknowledged":true}
    

提交回复
热议问题