Re: Add single or batch document in Solr 6.1.0

2020-10-20 Thread Erick Erickson
Batching is better, see: https://lucidworks.com/post/really-batch-updates-solr-2/ > On Oct 20, 2020, at 9:03 AM, vishal patel > wrote: > > I am using solr 6.1.0. We have 2 shards and each has one replica. > > I want to insert 100 documents in one collection. I am using below code. > > org.ap

Add single or batch document in Solr 6.1.0

2020-10-20 Thread vishal patel
I am using solr 6.1.0. We have 2 shards and each has one replica. I want to insert 100 documents in one collection. I am using below code. org.apache.solr.client.solrj.impl.CloudSolrClient cloudServer = new org.apache.solr.client.solrj.impl.CloudSolrClient(zkHost); cloudServer.setParallelUpdates