: I can't find a good way to create a new Collection with SolrJ. : I need to create my Collections dynamically and at the moment the only way I : see is to call the CollectionAdmin with a HTTP Call directly to any of my : SolrServers. : : I don't like this because I think its a better way only to communicate through : the CloudSolrServer connected to the zookeeper Servers and my application dont
There may not be any specific "convinience methods" for doing collection creation requests (patches welcome!) but the SolrServer.request(SolrRequest) method should be capable of making a request to the collections admin API. I think it would be something along the lines of... UpdateRequest req = new UpdateRequest("/admin/collections"); req.setParam("action","CREATE"); req.setParam("name","mycollection"); ... myCloudServer.request(req); -Hoss