No more than 1 mapping type on elastic


#1

Hi,

I just made the upgrade of elastic search from 5.6 to 6.0 and when I tried to rebuild my indexes I got this message:

Rejecting mapping update to [hfrence] as the final mapping would have more than 1 type: [user, saved_search]

Help please


#2

Hi fisher,

In elasticsearch 6.0, an index cannot have multiple document type. You can only have one document type per index.
You can create on index per document type to handle this.
You can follow this link for more explanation: https://www.elastic.co/guide/en/elasticsearch/reference/6.0/removal-of-types.html


#3

Wooh!! That means there are many changes in the ongoing version of elasticsearch…
Let me try this an check those new and amazing features they have surely added too.
Thanks for the info @admin