弹性搜索更新映射 [英] Elastic search update mappings

查看:58
本文介绍了弹性搜索更新映射的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在弹性搜索中为对象错误创建了映射.有没有一种更新映射的方法.对于对象类型(字符串而不是双精度),错误地创建了映射.

I have mappings created wrongly for an object in elastic search. Is there a way to update the mappings. The mapping has been created wrongly for type of the object(String instead of double).

推荐答案

通常,无法更新现有字段的映射.此规则有一些例外.例如:

In general, the mapping for existing fields cannot be updated. There are some exceptions to this rule. For instance:

new properties can be added to Object datatype fields.
new multi-fields can be added to existing fields.
doc_values can be disabled, but not enabled.
the ignore_above parameter can be updated.

来源: https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-put-mapping.html

这篇关于弹性搜索更新映射的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆