How to create index and type in elastic search?

Gopal picture Gopal · Oct 16, 2017 · Viewed 33.1k times · Source

I have installed elasticsearch version 2.3.2. I have to add index and type to that elasticsearch. Before I used sense plugin to achieve this. But the addon was removed from webstore. Please give suggestion.

Answer

Roopendra picture Roopendra · Oct 16, 2017

Sense plugin is now a Kibana app. Please refer official reference for installation.

The answer of your question is, you can create index and type in Elasticsearch by running below curl command

curl -XPUT "http://localhost:9200/IndexName/TypeName"