Skip to content

Conversation

@david-winslow
Copy link

@david-winslow david-winslow commented Nov 29, 2018

Multiple Mapping types are no longer supported from version ES 6.00+ and will be removed completely in ES 7. The default mapping type is a placeholder.

https://www.elastic.co/guide/en/elasticsearch/reference/6.x/removal-of-types.html

@ba0708
Copy link
Contributor

ba0708 commented Jan 3, 2019

Thanks a lot for the PR! The type was changed to _doc in preparation for version 7.x. According to the documentation:

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

@ba0708 ba0708 closed this Jan 3, 2019
@manugrandio
Copy link

I think this change makes the course video slide queries to fail. The video slides weren't updated.

When the index is created with _doc, the queries made to endpoints like order/default/_search will return 0 results. When I changed defaut to _doc in the endpoint (order/_doc/_search) they worked as expected.

@ba0708
Copy link
Contributor

ba0708 commented Feb 11, 2019

@manugrandio You are absolutely correct that there is a slightly inconvenient transition period until I get the videos updated to use _doc. However, I encourage everyone to use _doc from the beginning of the course, and in that case people can copy and paste the queries and get the expected results. :-)

@manugrandio
Copy link

@andy0708 Thanks, I didn't remember that 🙂

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.

3 participants