lujiguo115 发表于 2016-12-16 08:35:57

org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException: Document i

  当在学习使用solr时,solr的环境搭建好后,在进行索引添加操作的时候可能会出现如下操作
  org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException: Document is missing mandatory uniqueKey field: id
  这个问题的主要原因是你在添加时,没有添加对应的id字段,你在schema.xml中可以看到<uniqueKey>id</uniqueKey>在250行左右,在添加时必须添加id字段,否则会报上述错误。
页: [1]
查看完整版本: org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException: Document i