Document is missing mandatory uniqueKey field: id解决方案
做优乐选时调用模板类将缓存导入solr中时出现了这个错误,具体错误就是
solrTemplate.saveBeans(itemList);中的Beans少写了个s,导致数据不匹配.这两个方法太相似了,不过如果认真注意一下就会要导入的是list而不是单个对象.
Document is missing mandatory uniqueKey field: id解决方案
做优乐选时调用模板类将缓存导入solr中时出现了这个错误,具体错误就是
solrTemplate.saveBeans(itemList);中的Beans少写了个s,导致数据不匹配.这两个方法太相似了,不过如果认真注意一下就会要导入的是list而不是单个对象.