Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate Elasticsearch index from 6.8.x to 7.9.x #69

Open
sepe81 opened this issue May 22, 2021 · 1 comment
Open

Migrate Elasticsearch index from 6.8.x to 7.9.x #69

sepe81 opened this issue May 22, 2021 · 1 comment
Assignees

Comments

@sepe81
Copy link
Member

sepe81 commented May 22, 2021

INFO 12905 --- [ main] o.s.d.elasticsearch.support.VersionInfo : Version Spring Data Elasticsearch: 4.1.9
INFO 12905 --- [ main] o.s.d.elasticsearch.support.VersionInfo : Version Elasticsearch Client in build: 7.9.3
INFO 12905 --- [ main] o.s.d.elasticsearch.support.VersionInfo : Version Elasticsearch Client used: 7.9.3
INFO 12905 --- [ main] o.s.d.elasticsearch.support.VersionInfo : Version Elasticsearch cluster: 7.9.3

@sepe81 sepe81 added this to the 2.1.0 milestone May 22, 2021
@sepe81 sepe81 self-assigned this May 22, 2021
@sepe81
Copy link
Member Author

sepe81 commented May 22, 2021

Create a new policeticker-index mapping by starting the application and afterwards reindex existing data into this newly created index:

curl -HContent-Type:application/json -XPOST localhost:9200/_reindex -d'{
    "source": {
        "index": "policeticker-index"
    },
    "dest": {
        "index": "policeticker"
    }
}'

If everything is ok, delete the old index: curl -X DELETE "localhost:9200/policeticker-index?pretty"

@sepe81 sepe81 removed this from the 2.1.0 milestone Jul 23, 2022
@sepe81 sepe81 changed the title Migrate Elasticsearch index from 6.8.15 to 7.9.3 Migrate Elasticsearch index from 6.8.x to 7.9.x Jul 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant