Check if you have index with the same name in your cluster and delete if neccesary
curl -XGET 'http://localhost:9200/_cat/indices/myindex'
yellow open myindex peVBKbsiRXKufcz_GHsUpA 5 1 1 0 9.8kb 9.8kb
Index new document
curl -XPUT 'http://localhost:9200/myindex/docs/1' -d '{
"type": "topic",