{
  "id": "elasticsearch/too-many-nested-documents-under-field",
  "signature": "IllegalArgumentException: number of nested documents in field [comments] exceeds the limit of 10000",
  "signature_zh": "非法参数异常：字段 [comments] 中的嵌套文档数量超过 10000 的限制",
  "regex": "IllegalArgumentException: number of nested documents in field \\[.*?\\] exceeds the limit of \\d+",
  "domain": "elasticsearch",
  "category": "data_error",
  "subcategory": null,
  "root_cause": "A single document contains more than 10,000 nested documents in a nested field, hitting the default mapping limit.",
  "root_cause_type": "generic",
  "root_cause_zh": "单个文档在嵌套字段中包含超过 10,000 个嵌套文档，触发了默认映射限制。",
  "versions": [
    {
      "version": "7.17.10",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "8.8.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "8.14.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "High nested object counts degrade query performance and increase memory usage; the limit exists for a reason.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Flattening breaks nested query functionality (e.g., matching parent-child relationships across arrays), causing incorrect search results.",
      "fail_rate": 0.75,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Increase the limit for the specific index: PUT /my_index/_settings { \"index.mapping.nested_objects.limit\": 20000 }",
      "success_rate": 0.9,
      "how": "Increase the limit for the specific index: PUT /my_index/_settings { \"index.mapping.nested_objects.limit\": 20000 }",
      "condition": "",
      "sources": []
    },
    {
      "action": "Redesign the data model to use parent-child relationships (join field) instead of nested documents for large arrays.",
      "success_rate": 0.8,
      "how": "Redesign the data model to use parent-child relationships (join field) instead of nested documents for large arrays.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "针对特定索引增加限制：PUT /my_index/_settings { \"index.mapping.nested_objects.limit\": 20000 }",
    "重新设计数据模型，对大数组使用父子关系（join 字段）代替嵌套文档。"
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/nested.html",
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.9,
  "fix_success_rate": 0.85,
  "resolvable": "true",
  "first_seen": "2024-01-15",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}