Skip to content

Files

Latest commit

 

History

History
34 lines (30 loc) · 515 Bytes

updating-existing-mappings.md

File metadata and controls

34 lines (30 loc) · 515 Bytes

Updating existing mappings

Generally, field mappings cannot be updated

This query won't work.

PUT /reviews/_mapping
{
  "properties": {
    "product_id": {
      "type": "keyword"
    }
  }
}

Some mapping parameters can be changed

The ignore_above mapping parameter can be updated, for instance.

PUT /reviews/_mapping
{
  "properties": {
    "author": {
      "properties": {
        "email": {
          "type": "keyword",
          "ignore_above": 256
        }
      }
    }
  }
}