解决:Unable to identify index name. XXXModel is not a Document. Make sure the document class is annota
生活随笔
收集整理的這篇文章主要介紹了
解决:Unable to identify index name. XXXModel is not a Document. Make sure the document class is annota
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
前些天發(fā)現(xiàn)了一個(gè)巨牛的人工智能學(xué)習(xí)網(wǎng)站,通俗易懂,風(fēng)趣幽默,忍不住分享一下給大家。點(diǎn)擊跳轉(zhuǎn)到教程。
1. 往 elasticsearch 寫入數(shù)據(jù)調(diào)用 index 方法,執(zhí)行報(bào)錯(cuò):
Unable to identify index name. XXXModel is not a Document.Make sure the document class is annotated with @Document(indexName="foo")2. 原因:XXXModel?實(shí)體類上少注解, 加上此注解就可:
@Document(indexName = "cxx_es", type = "cxx_es")?
總結(jié)
以上是生活随笔為你收集整理的解决:Unable to identify index name. XXXModel is not a Document. Make sure the document class is annota的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: MFC关于JPG图片显示处理的几个方式
- 下一篇: opencv学 之图像傅里叶变换dft