GitHub user cpoerschke opened a pull request:
SOLR-7766: support creation of a coreless collection
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/bloomberg/lucene-solr trunk-create-coreless-collection
Alternatively you can review and apply these changes as the patch at:
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #186
Author: Christine Poerschke <email@example.com>
SOLR-????: support creation of a coreless collection
By supplying a deliberately empty create node set (via .../solr/admin/collections?action=CREATE&createNodeSet=&name=myCollection&...) the collection can be created in the usual manner but it will just not yet contain any cores for any of its shards. Later on .../solr/admin/collections?wt=json&action=ADDREPLICA&collection=myCollection&... calls can create cores as and when and where required.
The change to suppport this small new feature is in OverseerCollectionProcessor.java and in TestMiniSolrCloudCluster a new test case (testCollectionCreateWithoutCoresThenDelete) was added.