Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

deal with nil document types in Multimodel #978

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

Merged
picandocodigo merged 1 commit into elastic:master from catwell:pr-multimodel-without-types
Mar 1, 2021
Merged

deal with nil document types in Multimodel #978

picandocodigo merged 1 commit into elastic:master from catwell:pr-multimodel-without-types
Mar 1, 2021

Conversation

@catwell
Copy link
Contributor

@catwell catwell commented Feb 6, 2021

The simplest solution to deal with the removal of types in ElasticSearch is simply to use single-type indices and not set document_type on models.

However Multimodel did not deal with that case and ended up calling a URL ending in my-index//_search instead of my-index/_search, which caused the types warning:

warning: 299 Elasticsearch-7.9.1-083627f112ba94dffc1232e8b42b73492789ef91 "[types removal] Specifying types in search requests is deprecated."

This PR fixes that issue.

picandocodigo and alex-kononovich reacted with heart emoji alex-kononovich reacted with rocket emoji
Copy link

cla-checker-service bot commented Feb 6, 2021
edited
Loading

💚 CLA has been signed

Copy link
Member

Thank you for this contribution @catwell!

@picandocodigo picandocodigo merged commit cd9c309 into elastic:master Mar 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /