Root mapping definition has unsupported parameters

cant create an easiest mapping from a doc

mapping =  {
  "mappings": {
    "properties": {
      "age":    { "type": "integer" },
      "email":  { "type": "keyword"  },
      "name":   { "type": "text"  }
    }
  }
}

index_name = "test_index"

es.indices.put_mapping(index=index_name, body=mapping, doc_type='test')

version

elastic-transport==8.4.0

elasticsearch==7.17.9

elasticsearch-dsl==7.4.1

got an error

elasticsearch.exceptions.RequestError: RequestError(400, 'mapper_parsing_exception', 'Root mapping definition has unsupported parameters: [mappings : {properties={name={type=text}, age={type=integer}, email={type=keyword}}}]')

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.