solr问题missing content stream

时间:2015-01-16 18:52:59   收藏:0   阅读:2420

在使用solrj建立索引的时候,报错:missing content stream;

原因在于

HttpSolrServer httpSolrServer = new HttpSolrServer(sorlurl);
try {
  httpSolrServer.add(docList);
  httpSolrServer.commit();
} catch (SolrServerException | IOException e) {
  // TODO Auto-generated catch block
  e.printStackTrace();
}

程序执行时,docList为空,没有文档能够被用于建立索引

原文:http://www.cnblogs.com/strive-for-freedom/p/4229303.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!