can you look for how to create index in elasticsearch code example
Example: elastic create index
PUT /my-index-000001
// or with curl
curl -X PUT "localhost:9200/my-index-000001?pretty"
PUT /my-index-000001
// or with curl
curl -X PUT "localhost:9200/my-index-000001?pretty"