core-geonetwork icon indicating copy to clipboard operation
core-geonetwork copied to clipboard

Creating the features and records indexes in Elasticsearch 8.11.3 causes multiple dynamic templates config errors

Open liefra opened this issue 1 year ago • 0 comments

Describe the bug The installation Elasticsearch compatibility docs mention that version 8.11.3 is supported.

But, creating the features and records indexes in Elasticsearch 8.11.3 causes multiple mapper_parsing_exceptions related to the dynamic templates configuration

To Reproduce Steps to reproduce the behavior:

  1. Install Elasticsearch and Kibana 8.11.3
  2. Login to Kibana and go to the Dev Tools
  3. Create the indices using PUT /gn-features and the json files located in /opt/geonetwork/WEB-INF/data/config/index/features.json

Expected behavior Required indices can be created with errors

Error The following error shows up while trying to create the features index

{
  "error": {
    "root_cause": [
      {
        "type": "mapper_parsing_exception",
        "reason": """Failed to parse mapping: dynamic template [dateType] has invalid content [{"match":"ft_*_d","mapping":{"format":"","type":"double"}}], attempted to validate it with the following match_mapping_type: [object, string, long, double, boolean, date, binary]"""
      }
    ],
    "type": "mapper_parsing_exception",
    "reason": """Failed to parse mapping: dynamic template [dateType] has invalid content [{"match":"ft_*_d","mapping":{"format":"","type":"double"}}], attempted to validate it with the following match_mapping_type: [object, string, long, double, boolean, date, binary]""",
    "caused_by": {
      "type": "illegal_argument_exception",
      "reason": """dynamic template [dateType] has invalid content [{"match":"ft_*_d","mapping":{"format":"","type":"double"}}], attempted to validate it with the following match_mapping_type: [object, string, long, double, boolean, date, binary]""",
      "caused_by": {
        "type": "mapper_parsing_exception",
        "reason": "unknown parameter [format] on mapper [__dynamic__dateType] of type [double]"
      }
    }
  },
  "status": 400
}

Desktop (please complete the following information):

  • Browser: Chrome, Mc
  • GeoNetwork Version 4.4.2

Additional context Note: The searchlogs index is created without errors

liefra avatar Feb 20 '24 08:02 liefra