Datatype accidentally changed from keyword to text

hi there.

here is my issue. i init a index with field attrs which its datatype is keyword. but the datatype of attrs will accidentally be changed to text.

here is the initial datatype from Get Mapping API:

{
    album: {
        mappings: {
            album: {
                attrs: {
                    full_name: "attrs",
                    mapping: {
                        attrs: {
                            type: "keyword"
                        }
                    }
                }
            }
        }
    }
}

and after changed:

{
    album: {
        mappings: {
            album: {
                attrs: {
                    full_name: "attrs",
                    mapping: {
                        attrs: {
                            type: "text",
                            fields: {
                                keyword: {
                                    type: "keyword",
                                    ignore_above: 256
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}

thanks for help!

What causes this change? Your application? Re-creation of the index? You don't know?
You cannot really change the mapping of a field in an existing index, and it doesn't change by itself (at least to my knowledge, that would be an interesting bug).

So if you can add something to re-create the issues you are having or provide some additional context that would be incredibly helpful.

for now I don't know what case the change. I`m still tracing on this.

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