How to create an index on Elasticsearch

Wolf
4 min readFeb 3, 2023

In the last post I explain how we can put elasticsearch running with custom synonyms, configs and plugins on docker.

Now, let’s see what are the types we can use to define a data model in Elasticsearch.

We don’t need to define our data model in detail if we don’t want custom and advanced search or if our data is simple, we can simply send a request to insert the document in one index that is not yet created and Elasticsearch will automatically create the index with default definition in each field.

--

--

Wolf

A software engineer looking for learning more and share my knowledge.