Skip to content

Latest commit

 

History

History
31 lines (25 loc) · 514 Bytes

OPS.md

File metadata and controls

31 lines (25 loc) · 514 Bytes

ElasticSearch Operations Manual

Create a New Index

curl -XPOST http://<ES_HOST>/commuter -d @src/resources/commuter.es.mapping.json

Update Alias

curl -XPOST http://<ES_HOST>/_aliases -d '
{
    "actions": [
        { "remove": {
            "alias": "commuter",
            "index": "<OLD_INDEX>"
        }},
        { "add": {
            "alias": "commuter",
            "index": "<NEW_INDEX>"
        }}
    ]
}'

Delete Index

curl -XDELETE http://<ES_HOST>/commuter