Skip to content

Instantly share code, notes, and snippets.

@CarlosLannister
Created March 8, 2021 19:19
Show Gist options
  • Save CarlosLannister/74bcb720022010f25cd7245ff6542545 to your computer and use it in GitHub Desktop.
Save CarlosLannister/74bcb720022010f25cd7245ff6542545 to your computer and use it in GitHub Desktop.
Create elasticsearch index with alias
curl --user elastic:medium -X PUT "localhost:9200/twitter?pretty" -H 'Content-Type: application/json' -d'
{
"settings": {
"index": {
"number_of_shards": 3,
"number_of_replicas": 2
}
},
"aliases": {
"banco": {}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment