Skip to content

Throw an exception if field mapping is invalid #9927

@clintongormley

Description

@clintongormley

Currently we silently ignore invalid field mappings, eg:

PUT test1
{
  "mappings": {
    "searchText": {
      "properties": {
        "foo": {
          "type": "string",
          "anlayzer": "snowball",
          "foo": "bar"
        }
      }
    }
  }
}

We should throw an exception instead.

Related to #8870

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions