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

Jason Gerlowski commented on SOLR-9362:
---------------------------------------

Though this bug may exist in Solr 5, I cannot reproduce this problem in recent 
versions of Solr (I tried 7.0 and 7.5.0).  I used the code snippet below:


{code:java}
@Test
public void cusc_bare_url_test() throws Exception {
  try (SolrClient client = new 
ConcurrentUpdateSolrClient.Builder("http://localhost:8983/solr";).build()) {
    SolrInputDocument doc = new SolrInputDocument();
    doc.setField("id", "value");
    client.add("gettingstarted", doc);
    client.commit("gettingstarted");
  }
}{code}
 

I'm going to close this out, but if someone manages a modern reproduction, feel 
free to re-open with details.

> ConcurrentUpdateSolrClient does not work unless core name is passed in 
> constructor
> ----------------------------------------------------------------------------------
>
>                 Key: SOLR-9362
>                 URL: https://issues.apache.org/jira/browse/SOLR-9362
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: SolrJ
>    Affects Versions: 5.5.2
>         Environment: SolrJ version 5.5.2 and Solr 5.5.2
>            Reporter: Toby Hobson
>            Priority: Minor
>
> With the standard HttpSolrClient I can use either:
> {code:java}
> new HttpSolrClient("http://localhost:8983/solr/mycore";)
> client.add(doc)
> {code}
> or 
> {code:java}
> new HttpSolrClient("http://localhost:8983/solr";)
> client.add("mycore", doc)
> {code}
> However  I cannot use
> {code:java}
> new ConcurrentUpdateSolrClient("http://localhost:8983/solr";, 100, 10)
> client.add("mycore", doc)
> {code}
> as I get an error:
> java.lang.RuntimeException: Invalid version (expected 2, but 60) or the data 
> in not in 'javabin' format
> {code:java}
> new ConcurrentUpdateSolrClient("http://localhost:8983/solr/mycore";, 100, 10)
> client.add(doc)
> {code}
> works as expected



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to