On 5/1/2015 7:23 AM, Shawn Heisey wrote: > This is my solrj code: > > UpdateRequest req = new UpdateRequest("/" + _name + "/update"); > req.setAction(UpdateRequest.ACTION.OPTIMIZE, false, false); > UpdateResponse ur = req.process(_client);
Followup. I must not have actually been running that code, because when I created a test program and ran it, I got this in the log: INFO - 2015-05-01 08:04:02.246; org.apache.solr.update.processor.LogUpdateProcessor; [s5live] webapp=/solr path=/update params={optimize=true&waitSearcher=false&maxSegments=1&wt=javabin&version=2} {optimize=} 0 1221053 Now waitSearcher is set to false, but the call in SolrJ still took over 20 minutes, when what I was after was an immediate return. Will I need to start a separate thread to allow my program to continue running while an optimize is happening? Thanks, Shawn