码迷,mamicode.com
首页 > 其他好文 > 详细

solr问题missing content stream

时间:2015-01-16 18:54:43      阅读:400      评论:0      收藏:0      [点我收藏+]

标签:

在使用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为空,没有文档能够被用于建立索引

solr问题missing content stream

标签:

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!