elasticsearch搜索报错ElasticsearchException: failed to map source
生活随笔
收集整理的這篇文章主要介紹了
elasticsearch搜索报错ElasticsearchException: failed to map source
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
1.報(bào)錯(cuò)情況,其實(shí)es已經(jīng)有查詢結(jié)果了,可是卻報(bào)錯(cuò)了
Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception[Request processing failed; nested exception is org.springframework.data.elasticsearch.ElasticsearchException: failed to map source [ {"id":1002,"title":"御街行·秋日懷舊","content":"紛紛墜葉飄香砌。 夜寂靜,寒聲碎。真珠簾卷玉樓空,天淡銀河垂地。年年今夜, 月華如練,長(zhǎng)是人千里。"}] to class Article] with root cause2.解決方法
原因是確實(shí)無(wú)參構(gòu)造函數(shù),加上去就好了
總結(jié)
以上是生活随笔為你收集整理的elasticsearch搜索报错ElasticsearchException: failed to map source的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: helper的使用
- 下一篇: source-map讲解