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

Resolve [_type] illegal argument exception #104

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lucafrost
Copy link

Current version of elasticsearch_loader passes _type iteratively during data indexing. As per Elastic's announcement & overview on types, typeless APIs have been best practice since ES 6.0, and users who have upgraded to ES 8.0 will no longer be able to use _type.

Elastic 8.0 users attempting to use elasticsearch_loader will be met with the error RequestError(400, 'illegal_argument_exception', 'Action/metadata line [1] contains an unknown parameter [_type]') despite not passing --type as a CLI arg.

This edit resolves the issue painlessly

Current version of `elasticsearch_loader` passes `_type` iteratively during data indexing. As per Elastic's [announcement & overview on types](https://www.elastic.co/blog/moving-from-types-to-typeless-apis-in-elasticsearch-7-0), typeless APIs have been best practice since ES 6.0, and users who have upgraded to ES 8.0 will *no longer* be able to use _type.

Elastic 8.0 users attempting to use elasticsearch_loader will be met with the error `RequestError(400, 'illegal_argument_exception', 'Action/metadata line [1] contains an unknown parameter [_type]')` despite not passing --type as a CLI arg.

This edit resolves the issue painlessly
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.

1 participant