Created
March 8, 2021 19:19
-
-
Save CarlosLannister/74bcb720022010f25cd7245ff6542545 to your computer and use it in GitHub Desktop.
Create elasticsearch index with alias
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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