映射弹性搜索的变化2.3.3 [英] Mapping changes in elasticsearch 2.3.3

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

问题描述

如何在弹性搜索2.3.3手动设置ES索引中的嵌套字段的限制默认为50?

How can we set limit of nested fields in ES index in elasticsearch 2.3.3 manually which is 50 by default?


{错误:{root_cause:[{type:illegal_argument_exception,reason:索引[1000]中的嵌套字段[50]的限制已被超出}]

{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"Limit of nested fields [50] in index [1000] has been exceeded"}]


推荐答案

这是在破坏2.3的更改

您可以在索引设置如下:

You can change this in your index settings with the the following:

index.mapping.nested_fields.limit: 1001

请注意,只有在创建索引或更新映射时,才会考虑这一点。

Note that this is only taken into account when an index is created or mappings are updated.

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

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