Skip to content

Investigate Mappings Dynamic vs Explicit #13

@moisbo

Description

@moisbo

We currently use dynamic mappings in OpenSearch. And because of that we need to increase the limit of the total_fields to a number larger than the default 1000

If we dont increase it you get an error:

{
  "body": {
    "error": {
      "root_cause": [
        {
          "type": "illegal_argument_exception",
          "reason": "Limit of total fields [1000] has been exceeded"
        }
      ],
      "type": "illegal_argument_exception",
      "reason": "Limit of total fields [1000] has been exceeded"
    },
    "status": 400
  },
  "statusCode": 400,
  "headers": {
    "content-type": "application/json; charset=UTF-8",
    "content-length": "229"
  }
}

We need to decide whether we map the searchable fields and or increasing the total_fields. If we map the fields we need to add this work to our workflow.

https://opensearch.org/docs/latest/field-types/

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions