Since you have define commit option as "Auto Commit" for hard and soft commit then you don't have to explicitly call commit from SolrJ client. And openSearcher=false for hard commit will make hard commit faster since it is only makes sure that recent changes are flushed to disk (for durability) and not opening any searcher.
can you post you log when soft commit and hard commit happens? You can read about waitFlush=false and waitSearcher=false which are default to true, see below from java doc JavaDoc: *waitFlush* block until index changes are flushed to disk *waitSearcher* block until a new searcher is opened and registered as the main query searcher, making the changes visible*T* On Fri, May 3, 2013 at 7:19 AM, vicky desai <vicky.de...@germinait.com>wrote: > Hi All, > > setting opensearcher flag to true solution worked and it give me visible > improvement in commit time. One thing to make note of is that while using > solrj client we have to call server.commit(false,false) which i was doing > incorrectly and hence was not able to see the improvement earliear. > > Thanks everyone > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/commit-in-solr4-takes-a-longer-time-tp4060396p4060688.html > Sent from the Solr - User mailing list archive at Nabble.com. >