profile
viewpoint

Ask questionsElasticsearch 7.0 Removal of mapping types

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

I'm unable to use chewy to create indexes in Elasticsearch 7.0. Chewy attempts to create indexes with mappings that looks like this:

PUT /posts
{
  "settings": { "analysis": { ... } },
  "mappings" : {
    "post": { 
      "properties": { "id": { "type": "keyword" } , etc }
    }
  }
}

ES7 has removed the "mapping type" level from the "mappings" field, so now expects documents that look like this:

{
  "settings": { "analysis": { ... } },
  "mappings" : {
    "properties": { "id": { "type": "keyword" } , etc }
  }
}

For the 7.x series, the old way is still supported, but only my appending a ?include_type_name=true query param to the create index URL.

PUT posts?include_type_name=true

I tried a few ways to set it in the body, but that doesn't seem possible. It also doesn't seem possible for chewy to provide a query param when creating the index.

toptal/chewy

Answer questions silva96

Elasticsearch 6.8.x (pre 7.x) is EOL tomorrow, https://www.elastic.co/es/support/eol

any plans to make chewy compatible?

useful!

Related questions

No questions were found.
source:https://uonfu.com/
Github User Rank List