建立索引

curl -XPUT 'www.example.com:9200/myIndexName?pretty'

輸出:

{
  "acknowledged" : true
}

參考連結: 這裡