Most probably because your solrconfig.xml is setting maxDocs for 1: <maxDocs>1</maxDocs>. Then Solr will autoCommit EITHER with 1 document or after <maxTime> has passed. Change your <maxDocs> value in solrconfig.xml to 10000, don't forget to RELOAD the core, then test it again.
On Thu, Jul 30, 2015 at 12:13 PM, Nitin Solanki <nitinml...@gmail.com> wrote: > Hi Edwards, > I am only sending 1 document for indexing then why it is > committing instantly. I gave <maxTime> to 60000. > > On Thu, Jul 30, 2015 at 8:26 PM Edward Ribeiro <edward.ribe...@gmail.com> > wrote: > > > Your <maxDocs> is set to 1. This is the number of pending docs before > > autocommit is triggered too. You should set it to a higher value like > > 10000, for example. > > > > Edward > > Em 30/07/2015 11:43, "Nitin Solanki" <nitinml...@gmail.com> escreveu: > > > > > Hi, > > > I am trying to index documents using solr cloud. After setting, > > > <maxTime> to 60000 ms in hard commit. Documents are visible instantly > > while > > > adding them. Not commiting after 60000 ms. > > > I have added Solr log. Please check it. I am not getting exactly what > is > > > happening. > > > > > > *CURL to commit documents:* > > > > > > curl http://localhost:8983/solr/test/update/json -H > > > 'Content-type:application/json' -d '<json-here>' > > > > > > *Solrconfig.xml:* > > > <autoCommit> > > > <maxDocs>1</maxDocs> > > > <maxTime>60000</maxTime> > > > <openSearcher>false</openSearcher> > > > </autoCommit> > > > <!--<autoSoftCommit> --> > > > <!-- <maxTime>${solr.autoSoftCommit.maxTime:-1}</maxTime> --> > > > <!--</autoSoftCommit>--> > > > > > > > > > *Solr Log: * > > > INFO - 2015-07-30 14:14:12.636; [test shard6 core_node2 > > > test_shard6_replica1] > > org.apache.solr.update.processor.LogUpdateProcessor; > > > [test_shard6_replica1] webapp=/solr path=/update > > > > > > > > > params={update.distrib=FROMLEADER&waitSearcher=true&openSearcher=true&commit=true&softCommit=false&distrib.from= > > > > > > > > > http://100.77.202.145:8983/solr/test_shard2_replica1/&commit_end_point=true&wt=javabin&version=2&expungeDeletes=false > > > } > > > {commit=} 0 26 > > > > > >