前些天發現了一個巨牛的人工智能學習網站,通俗易懂,風趣幽默,忍不住分享一下給大家。點擊跳轉到教程。
1. 往 elasticsearch 寫入數據調用 index 方法,執行報錯:
Unable to identify index name. XXXModel is not a Document.Make sure the document class is annotated with @Document(indexName="foo")
2. 原因:XXXModel?實體類上少注解, 加上此注解就可:
@Document(indexName = "cxx_es", type = "cxx_es")
?