Solr softcommit状态?

时间:2015-11-25 17:35:16

标签: java solr solrj

我正在从许多应用程序执行softcommit,我想知道softcommit是否已经在另一个应用程序中结束索引并处理一些指标。 是否有办法获得solrj softcommit状态?

//in my case : 
//softCommit =true; beans is a list of solr bean that has 2000 records.

//sending my beans to the solr server
if( !(beans==null || beans.size() == 0 )){
        server.addBeans(beans);
}           

if( softCommit==false){
        //hard commit
        UpdateResponse ur = server.commit();
}

问题在于我没有执行提交,而且solr服务器在后台工作。

这样做我如何知道提交状态?

0 个答案:

没有答案