elasticsearch搜索报错ElasticsearchException: failed to map source
生活随笔
收集整理的這篇文章主要介紹了
elasticsearch搜索报错ElasticsearchException: failed to map source
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
1.報錯情況,其實es已經有查詢結果了,可是卻報錯了
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":"紛紛墜葉飄香砌。 夜寂靜,寒聲碎。真珠簾卷玉樓空,天淡銀河垂地。年年今夜, 月華如練,長是人千里。"}] to class Article] with root cause2.解決方法
原因是確實無參構造函數,加上去就好了
總結
以上是生活随笔為你收集整理的elasticsearch搜索报错ElasticsearchException: failed to map source的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: helper的使用
- 下一篇: source-map讲解