Skip to content

Encountered an unsupported variant tag '' on 'Analysis.INormalizer', which could not be deserialized #8196

Closed
@feherbbj

Description

@feherbbj

Elastic.Clients.Elasticsearch version: 8.13.12
Elasticsearch version: 8.12.2
.NET runtime version: 8.0

If you inser the following schema, then use "client.Indices.GetAsync(new GetIndexRequest(Indices.Index("analyzer-fail")));" It will throw an exception "Encountered an unsupported variant tag '' on 'Analysis.INormalizer', which could not be deserialized."

PUT analyzer-fail
{
  "settings": {
    "analysis": {
      "normalizer": {
        "keyword_lowercase": {
          "filter": [ "lowercase" ]
        }
      }
    }
  },
  "mappings": {
    "properties": {
      "id": { "type": "keyword" },
      "keyword": {
        "type": "keyword",
        "normalizer": "keyword_lowercase"
      }
    }
  }
}

Expected behavior
This used to work in 7.x

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