You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Shawn Heisey (Jira)" <ji...@apache.org> on 2019/10/06 17:28:00 UTC

[jira] [Comment Edited] (SOLR-13719) SolrClient.ping() in 8.2, using SolrJ

    [ https://issues.apache.org/jira/browse/SOLR-13719?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16945414#comment-16945414 ] 

Shawn Heisey edited comment on SOLR-13719 at 10/6/19 5:27 PM:
--------------------------------------------------------------

[~mkhl], SolrServer was deprecated by SOLR-6895 nearly 5 years ago.  As far as I know, it doesn't exist any more, removed before the 6.0 release.  Even EmbeddedSolrServer is a descendant of SolrClient.  I didn't see any SolrServer suggestion/recommendation in the javadoc you linked.  Am I overlooking something?



was (Author: elyograg):
@mkhl, SolrServer was deprecated by SOLR-6895 nearly 5 years ago.  As far as I know, it doesn't exist any more, removed before the 6.0 release.  Even EmbeddedSolrServer is a descendant of SolrClient.  I didn't see any SolrServer suggestion/recommendation in the javadoc you linked.  Am I overlooking something?


> SolrClient.ping() in 8.2, using SolrJ
> -------------------------------------
>
>                 Key: SOLR-13719
>                 URL: https://issues.apache.org/jira/browse/SOLR-13719
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: clients - java
>    Affects Versions: 8.2
>         Environment: linux mint 19,  java8
>            Reporter: Benjamin Wade Friedman
>            Priority: Trivial
>              Labels: beginner, easyfix, newbie
>         Attachments: SOLR-13719.patch
>
>
> {color:#222222}I started a local SolrCloud instance with two nodes and two replicas per node.  I created one empty collection on each node.  So I guess I have two shard per collection. 
> {color}
>  
> 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.  {color:#222222}BaseCloudSolrClient.setDefault{color}{color:#222222}{color:#222222}Collection(String) is effectively deprecated because CloudSolrClient no longer has a public constructor.  {color}{color}
>  
> {color:#222222}{color:#222222}Can we add an argument to the Builder constructor to accept a string for the default collection?  Or a new setter on the Builder? {color}{color}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org