Is it possible to update an existing field in an index through mapping in Elasticsearch?

前端 未结 1 1683
遇见更好的自我
遇见更好的自我 2021-01-26 03:20

I\'ve already created an index, and it contains data from my MySQL database. I\'ve got few fields which are string in my table, where I need them as di

相关标签:
1条回答
  • 2021-01-26 03:23

    Once a mapping type has been created, you're very constrained on what you can update. According to the official documentation, the only changes you can make to an existing mapping after it's been created are the following, but changing a field's type is not one of them:

    In general, the mapping for existing fields cannot be updated. There are some exceptions to this rule. For instance:

    • new properties can be added to Object datatype fields.
    • new multi-fields can be added to existing fields.
    • doc_values can be disabled, but not enabled.
    • the ignore_above parameter can be updated.
    0 讨论(0)
提交回复
热议问题