In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
How to prevent Mapping explosion in ElasticSearch? for this problem, this article introduces the corresponding analysis and solution in detail, hoping to help more partners who want to solve this problem to find a more simple and feasible way.
1 background of the story
One day, my colleague told me that ES data cannot be inserted. Query cluster logs.
Requests java.lang.IllegalArgumentException: Limit of total fields [1000] in index [my_index] has been exceeded
2 Mapping description
Mapping is protected by mapping to prevent mapping explosion
The following settings allow you to limit the number of field mappings that can be created manually or dynamically to prevent incorrect documents from causing mapping explosions:
Index.mapping.total_fields.limit:
The maximum number of fields in the index. Default value is 1000
Index.mapping.depth.limit:
The maximum depth of the field, measured by the number of internal objects. For example, if all fields are defined at the root object level, the depth is 1. If there is an object mapping, the depth is 2, and so on. The default value is 20.
Index.mapping.nested_fields.limit
The maximum number of fields in the nested index, default is 50. Index 1 document with 100 nested fields actually index 101 documents, because each nested document is indexed as a separate hidden document
3 temporary solution Modification settingPUT my_index/_settings {"index.mapping.total_fields.limit": 2000} the answer to the question on how to prevent Mapping explosion in ElasticSearch is shared here. I hope the above content can be of some help to everyone. If you still have a lot of doubts to be solved, you can follow the industry information channel for more related knowledge.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.