Elasticsearch 6: Rejecting mapping update as the final mapping would have more than 1 type

后端 未结 5 1889
忘了有多久
忘了有多久 2021-02-18 19:29

I\'m trying to convert a project to use the latest Elasticsearch 6 and am having this problem. I don\'t know if the problem is \"Product\" vs \"product\". In my mappings and att

5条回答
  •  南方客
    南方客 (楼主)
    2021-02-18 20:09

    Prior to elasticsearch v6, an index can have only 1 mapping by default. In previous version 5.x, multiple mapping was possible for an index. Though you may change this default setting by updating index setting "index.mapping.single_type": false .

    In your case, my assumption is you had already created the index with mapping Product. That is why it was rejecting new mapping in your second request with "product" (p in small case).

提交回复
热议问题