Will have a go at it in a bit, in the meantime I've kind of workaround it setting autoSoftCommit maxDocs to 1.
On Wed, May 16, 2012 at 3:08 PM, Ahmet Arslan <iori...@yahoo.com> wrote: > > 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. > > Does this code work? > > SolrServer server = new HttpSolrServer(url); > UpdateRequest req = new UpdateRequest(); > req.setParam(UpdateParams.SOFT_COMMIT, "true"); > UpdateResponse updateResponse = req.process(server); > System.out.println(updateResponse); >