org.springframework.data.solr.UncategorizedSolrException: undefined field 动态域名(item-spec_网络);
nested exception is org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException: undefined field 动态域名(item-spec_网络).
原因分析:是实体类字段映射配置问题.或是索引库数据问题.
首先检查索引库数据如下图:

更新索引库数据:

再次查看索引库数据:

再检查实体类的映射:

再次运行,发现问题已经解决了.
本文分析了在使用Spring Data Solr时遇到的UncategorizedSolrException异常,详细解释了问题原因并提供了实体类字段映射配置及索引库数据问题的解决方案。
993

被折叠的 条评论
为什么被折叠?



