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

[STORE] Make default doc type '_doc' in preparation for deprecation of mapping types #816

Merged
merged 6 commits into from
Jul 23, 2018

Conversation

estolfo
Copy link
Contributor

@estolfo estolfo commented Jul 20, 2018

See this documentation.

These changes will require users to define a document_type and klass on repository objects if they want to maintain previous behavior.
The changes create a path for users to upgrade smoothly to ES 6 and to future versions of ES. Ultimately, document_type will be removed in 7.0, as there won't be the ability to define a mapping type.

@estolfo estolfo force-pushed the default_doc_type branch 2 times, most recently from ce0b2fa to 6b209f0 Compare July 23, 2018 13:10
@estolfo estolfo merged commit cae7ba7 into elastic:6.x Jul 23, 2018
estolfo added a commit that referenced this pull request Jul 23, 2018
…f mapping types (#816)

* [STORE] Require document_type or method options to set type in find requests

* [STORE] Require document_type for a Repository to have a document type set, otherwise use _doc

* [STORE] Use document_type or type in options for search requests

* [STORE] Require #klass to be defined on a repository for deserialization

* [STORE] Only rely on document_type setting in storage requests

* [STORE] Fix up tests to work with default document_type and klass on Repository object
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