Error while bulk request ElasticsearchException[Elasticsearch exception [type=illegal_argument_exception, reason=mapper [ABC] of different type, current_type [text], merged_type [date]]]


在使用elastic search 存儲時,出現如下錯誤:

Error while bulk request ElasticsearchException[Elasticsearch exception [type=illegal_argument_exception, reason=mapper [ABC] of different type, current_type [text], merged_type [date]]]

原因是:

在一個請求里,同時創建了兩條記錄,這兩條記錄都有ABC字段,但是兩條記錄的ABC字段值類型不同,一個是日期類型,一個是字符串類型,這個字段是個新字段,根據測試,也不是每次都出現這個問題的。

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM