follow up https://issues.apache.org/jira/browse/SOLR-13719
On Mon, Aug 26, 2019 at 10:42 AM Mikhail Khludnev <m...@apache.org> wrote: > Well. It seems it lacking some perfection, but hope you can overcome it > with BaseCloudSolrClient.setDefaultCollection(String). > > > On Mon, Aug 26, 2019 at 7:18 AM Ben Friedman <ben.w.fried...@gmail.com> > wrote: > >> Before I submit a new bug, I should ask you folks if this is my error. >> >> I started a local SolrCloud instance with two nodes and two replicas per >> node. I created one empty collection on each node. >> >> I tried to use the ping method in Solrj to verify my connected client. >> When I try to use it, it throws ... >> >> Caused by: org.apache.solr.common.SolrException: No collection param >> specified on request and no default collection has been set: [] >> at >> >> org.apache.solr.client.solrj.impl.BaseCloudSolrClient.sendRequest(BaseCloudSolrClient.java:1071) >> ~[solr-solrj-8.2.0.jar:8.2.0 31d7ec7bbfdcd2c4cc61d9d35e962165410b65fe - >> ivera - 2019-07-19 15:11:07] >> >> I cannot pass a collection name to the ping request. And the >> CloudSolrClient.Builder does not allow me to declare a default collection. >> >> I'm not sure why a collection would be required for a ping. And I'm not >> sure why it does not automatically use the only collection created. >> >> Have any suggestions for me? Thank you. >> > > > -- > Sincerely yours > Mikhail Khludnev > -- Sincerely yours Mikhail Khludnev