Elasticsearch 9 · Indices and mappings
Create an index
Create an index with explicit settings.
curl -u elastic:$ELASTIC_PASSWORD --cacert http_ca.crt -X PUT "https://localhost:9200/products" -H "Content-Type: application/json" -d '{"settings":{"number_of_shards":1,"number_of_replicas":1}}'
Official Elasticsearch 9 documentation
More indices and mappings commands
All indices and mappings commands · Elasticsearch 9 cheatsheet