On May 16, 2012, at 6:07 AM, marco crivellaro wrote:

> Hi all,
> I am evaluating Solr 4.0 fot its NRT capabilities.
> How can you perform a soft commit with solrj 4.0?
> 
> HttpSolrServer.commit method doesn't have softCommit option which appears to
> be an option available for the commit command:
> http://wiki.apache.org/solr/UpdateXmlMessages#A.22commit.22_and_.22optimize.22
> 
> --
> View this message in context: 
> http://lucene.472066.n3.nabble.com/SolrJ-4-soft-commit-tp3984057.html
> Sent from the Solr - User mailing list archive at Nabble.com.


You might want to open a JIRA issue to add better support for that in solrj. 
I'm pretty sure that waitFlush is still just a noop and we should remove it - 
perhaps we just replace it with softCommit or something.

You can still access the raw params for the update request though - and then 
just look at 
http://wiki.apache.org/solr/UpdateXmlMessages#A.22commit.22_and_.22optimize.22

Just get the modifiable params from the request and set the soft commit.

- Mark Miller
lucidimagination.com











Reply via email to