elasticsearch Limit of total fields [1000] in index
elasticsearch中默认最大字段数1000个,实际上500左右就可能出现错误。 精简业务字段 2.手动修改elasticsearch 字段 curl -i -H "Content-Type: application/json" -X PUT -d "{\"index.mapping.total_fields.limit\":\"2100\"}" http://127.0.0.1:9200/index/_settings/ 3.将多个字段放入一个字段中 参考官方解释 https://www.elastic.co/guide/en/elasticsearch/reference/7.3/mapping.html#mapping-limit-settings Settings to prevent mappings explosion Defining too many fields in an index is a condition that can lead to a mapping explosion, which can cause out of memory errors and difficult situations to recover from. This problem may be more common than expected. As an