Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
feherbbj opened this issue May 24, 2024 · 0 comments · Fixed by #8206
Labels
8.x Relates to a 8.x client version Area: Specification Category: Bug

Comments

@feherbbj
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
8.x Relates to a 8.x client version Area: Specification Category: Bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants