Skip to content

PUT Mapping removes metadata from index #27323

@pacer11

Description

@pacer11

Elasticsearch version (bin/elasticsearch --version): 5.3.0

Plugins installed: [repository-s3]

JVM version (java -version): 1.8.0_92

OS version (uname -a if on a Unix-like system): Linux 2.6

Description of the problem including expected versus actual behavior:

Steps to reproduce:
After we make a PUT or POST mapping to add additional fields, it removes our _meta Field from the mapping.
Is this normal? Can we prevent this?

Before:

{
"foo": {
"mappings": {
"bar": {
"_meta": {
"foo": "bar"
},
"properties": {
...

After:

{
"foo": {
"mappings": {
"bar": {
"properties": {
...

This was question was asked in the forum with no answer provided.
https://discuss.elastic.co/t/put-mapping-removes-metadata-from-index/91794

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions