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

Remove unused typeName which was deprecated in es7, forbidden in es8 #142

Merged
merged 1 commit into from
Feb 1, 2024

Conversation

michaelkirk
Copy link
Contributor

@michaelkirk michaelkirk commented Jul 10, 2023


Here's the reason for this change 🚀

I'd like Pelias to run on elasticsearch 8 some day. This is a step towards that.

Pelias does not support es6. Mapping types were first deprecated in es6 and optional with es7, but are now breaking with my es8 tests.


Here's what actually got changed 👏

I removed typeName from the default config.

In es6 it was recommended to be "_doc".
In es7 it was optional, but if specified it was required to be "_doc".
In es8 it's not allowed at all.

See more:
https://www.elastic.co/guide/en/elasticsearch/reference/7.17/removal-of-types.html


Here's how others can test the changes 👀

I ran the existing tests and have successfully utilized this in the context of pelias/schema#490

In es6 it was recommended to be "_doc".
In es7 it was required to be "_doc".
In es8 it's not allowed at all.

See more:
https://www.elastic.co/guide/en/elasticsearch/reference/7.17/removal-of-types.html
@michaelkirk michaelkirk changed the title Remove unused typeName which Remove unused typeName which was deprecated in es7, forbidden in es8 Jul 21, 2023
@missinglink missinglink merged commit 72e4a4c into pelias:master Feb 1, 2024
@missinglink
Copy link
Member

Thanks for the PR, this officially drops support for elasticsearch v6 so that v8 can now be supported.

The king is dead, long live the king!

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

Successfully merging this pull request may close these issues.

2 participants