You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Toby Hobson (JIRA)" <ji...@apache.org> on 2016/07/30 17:24:20 UTC
[jira] [Created] (SOLR-9362) ConcurrentUpdateSolrClient does not
work unless core name is passed in constructor
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