-
-
Notifications
You must be signed in to change notification settings - Fork 968
Update to elasticsearch 6 #2585
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
Conversation
|
||
before_install: | ||
- git submodule update --init | ||
- curl https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.8.13.deb -o elasticsearch.deb |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there an apt mirror for elasticsearch v6 that we can use so we don't have to download and install everything manually?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Travis needs to whitelist apt mirrors I think. The issue is following doesn't work on travis:
apt:
sources:
- elasticsearch-6.x
https://travis-ci.community/t/upgrade-elasticssearch-version-to-6-x-7-x/3423
We will need to install it manually. what we change here is dependence on artifacts.elastic.co by keeping the deb file in our s3.
Gemfile.lock
Outdated
elasticsearch-api (= 5.0.5) | ||
elasticsearch-transport (= 5.0.5) | ||
elasticsea 10000 rch-api (5.0.5) | ||
elasticsearch (7.5.0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does elasticsearch
need to be restricted to ~> 6.0.0
also?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. It was fixed in 6.1, I have removed patch version pinning.
From ES 6 allows only a single-type per index: > Indices created in 6.x only allow a single-type per index. Any name can be used for the type, but there can be only one. The preferred type name is _doc, so that index APIs have the same path as they will have in 7.0: PUT {index}/_doc/{id} and POST {index}/_doc https://www.elastic.co/guide/en/elasticsearch/reference/6.8/removal-of-types.html
Fixes: Disallowing sources: elasticsearch-6.x
requirement of elasticsearch-model was too relaxed and installing elasticsearch (7.5.0). Fix was released in elasticsearch-model 6.1
https://www.elastic.co/guide/en/elasticsearch/reference/6.8/removal-of-types.html
https://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-version-migration.html