lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Toby Hobson (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SOLR-9362) ConcurrentUpdateSolrClient does not work unless core name is passed in constructor
Date Sat, 30 Jul 2016 17:24:20 GMT
Toby Hobson created SOLR-9362:
---------------------------------

             Summary: 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
(v6.3.4#6332)

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


Mime
View raw message