Hey Jigar, I don't think the sort of thing you're asking about is possible today. Solr allows users to define default param-values on the "request-handler" backed APIs that are defined in each solrconfig.xml of each configset, but it has no equivalent of this (afaik) that would work for the collection-creation API or other admin APIs.
Jason On Fri, Jul 23, 2021 at 11:48 AM Jigar Pandya <[email protected]> wrote: > > Hello, > > We are on Solr 8.3 using SolrCloud. We would like to have all our collections > to have 2 shards and 3 replicas…as per the doc - > https://solr.apache.org/guide/8_3/collection-management.html#collection-management > - one way we can do it is through collection API shown below. > > $SOLRHOST/admin/collections?action=CREATE&name=test_collection&numShards=2&replicationFactor=3&maxShardsPerNode=-1&collection.configName=vc_default > > Is there a way we can have number of shards, number of replication factor etc > etc configured in some global place like configset etc so that we don’t have > to constantly remember and supply this parameters…different development > creates the collections so it’s better if this kinds of configuration are > stored at global place and inherited. > > question is, can we configured have number of shards, number of replication > factor as part of collection.configName ? if yes, how can we do that ? > > Thanks > Jigar
