今天写了一个solr入库接口,使用了SolrServer.addBean接口,结果报错:Caused by: org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException: Document is missing mandatory uniqueKey field: id。

经查solr使用手册,这是因为SolrDocument 没有id属性或者有id属性但是值为空。

随及解决问题。

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-10-10
  • 2022-01-13
  • 2021-09-07
  • 2022-01-15
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-04-14
  • 2022-12-23
  • 2021-12-06
  • 2022-12-23
  • 2021-11-18
  • 2022-12-23
  • 2021-08-27
相关资源
相似解决方案