Hard Commit not working
Hi, I am trying to index documents using solr cloud. After setting, maxTime to 6 ms in hard commit. Documents are visible instantly while adding them. Not commiting after 6 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 maxDocs1/maxDocs maxTime6/maxTime openSearcherfalse/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=FROMLEADERwaitSearcher=trueopenSearcher=truecommit=truesoftCommit=falsedistrib.from= http://100.77.202.145:8983/solr/test_shard2_replica1/commit_end_point=truewt=javabinversion=2expungeDeletes=false} {commit=} 0 26
Re: Hard Commit not working
Hi Edwards, I am only sending 1 document for indexing then why it is committing instantly. I gave maxTime to 6. 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 1, 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 6 ms in hard commit. Documents are visible instantly while adding them. Not commiting after 6 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 maxDocs1/maxDocs maxTime6/maxTime openSearcherfalse/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=FROMLEADERwaitSearcher=trueopenSearcher=truecommit=truesoftCommit=falsedistrib.from= http://100.77.202.145:8983/solr/test_shard2_replica1/commit_end_point=truewt=javabinversion=2expungeDeletes=false } {commit=} 0 26
Re: Hard Commit not working
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 1, 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 6 ms in hard commit. Documents are visible instantly while adding them. Not commiting after 6 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 maxDocs1/maxDocs maxTime6/maxTime openSearcherfalse/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=FROMLEADERwaitSearcher=trueopenSearcher=truecommit=truesoftCommit=falsedistrib.from= http://100.77.202.145:8983/solr/test_shard2_replica1/commit_end_point=truewt=javabinversion=2expungeDeletes=false } {commit=} 0 26
Re: Hard Commit not working
Please be more specific as to why you think something is not working. -- Jack Krupansky On Thu, Jul 30, 2015 at 10:43 AM, Nitin Solanki nitinml...@gmail.com wrote: Hi, I am trying to index documents using solr cloud. After setting, maxTime to 6 ms in hard commit. Documents are visible instantly while adding them. Not commiting after 6 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 maxDocs1/maxDocs maxTime6/maxTime openSearcherfalse/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=FROMLEADERwaitSearcher=trueopenSearcher=truecommit=truesoftCommit=falsedistrib.from= http://100.77.202.145:8983/solr/test_shard2_replica1/commit_end_point=truewt=javabinversion=2expungeDeletes=false } {commit=} 0 26
Re: Hard Commit not working
Most probably because your solrconfig.xml is setting maxDocs for 1: maxDocs1/maxDocs. Then Solr will autoCommit EITHER with 1 document or after maxTime has passed. Change your maxDocs value in solrconfig.xml to 1, 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 6. 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 1, 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 6 ms in hard commit. Documents are visible instantly while adding them. Not commiting after 6 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 maxDocs1/maxDocs maxTime6/maxTime openSearcherfalse/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=FROMLEADERwaitSearcher=trueopenSearcher=truecommit=truesoftCommit=falsedistrib.from= http://100.77.202.145:8983/solr/test_shard2_replica1/commit_end_point=truewt=javabinversion=2expungeDeletes=false } {commit=} 0 26