Elasticsearch Create Index Link to heading

export INDEX="documents_local"
curl -X PUT "localhost:9200/$INDEX" -H 'Content-Type: application/json' -d'{ "settings" : { "index" : { } }}'

export INDEX="schoolsearch"
curl -X PUT "localhost:9200/$INDEX" -H 'Content-Type: application/json' -d'{ "settings" : { "index" : { } }}'

# opensearch
curl -X PUT "localhost:39201/$INDEX" -H 'Content-Type: application/json' -d'{ "settings" : { "index" : { } }}'


# Configure number of replicas
curl -X PUT "localhost:9200/$INDEX/settings" -H 'Content-Type: application/json' -d'{ "settings" : { "index" : { "number_of_replicas": 0} }}'