Getting error in Elasticsearch while creating index using postman Getting error in Elasticsearch while creating index using postman elasticsearch elasticsearch

Getting error in Elasticsearch while creating index using postman


You can simply have a PUT request as such:

http://localhost:9200/indexname <--- give your index name

And then within your request body you could give the mappings:

{  "mappings": {    "message_logs": {      "properties": {        "anyfield": { <-- give your field          "type": "text" <-- and the type        }      }    }  }}

This SO might help you if you're willing to create the index using CURL.The above is just a sample. You could reproduce it.