Hi,

While indexing, is there going to be any performance benefit to set the
collection name first using setDefaultCollection
<https://lucene.apache.org/solr/6_5_0/solr-solrj/org/apache/solr/client/solrj/impl/CloudSolrClient.html#setDefaultCollection-java.lang.String->
(String
<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true>
collection)
method and then index the document
using cloudClient.add(solrInputDoc), instead of suing the method
cloudClient.add(collectionName, solrInputDoc)?

Is this performance benefit to consider or is this mere of a convenience /
better looking code?

Thanks

Reply via email to