Can’t merge a non object mapping with an object mapping error in machine learning(beta) module

后端 未结 1 1608
时光取名叫无心
时光取名叫无心 2021-01-18 16:39

I\'m trying out the new machine learning module in x pack. I\'m trying to identify rare response codes in HTTP Access logs in time. My logs are being stored in elasticsearch

1条回答
  •  伪装坚强ぢ
    2021-01-18 17:34

    The error message means that you are trying to change an existing mapping. However, that is not possible in Elasticsearch. Once a mapping has been created, it cannot be changed.

    As explained by Shay Banon himself:

    You can't change existing mapping type, you need to create a new index with the correct mapping and index the data again.

    So you must create a new index to create this mapping. Depending on the situation, you either

    • create an additional index, or
    • delete the current index and re-create it from scratch.

    Of course in the latter case you will lose all data in the index, so prepare accordingly.

    0 讨论(0)
提交回复
热议问题