全部:
现在,我想向SOLR发送大量文档,以便使用SOLRJ进行索引,然后更新某些字段。当文档数量很小或者我手动运行这两个作业时,更新就会工作。但是,当我在一个代码中运行这两个作业时,其中包含大量文档,则更新部分无法工作。
HttpSolrServer solr = new HttpSolrServer("http://localhost:8983/solr/");
// Suppose here are lots of documents using a for/while loop to add them( or multithread)
{
SolrInputDocume