Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SolrTeplate now appends the domain object name to solr url [DATASOLR-363] #487

spring-projects-issues opened this issue Feb 9, 2017 · 4 comments


Copy link

@spring-projects-issues spring-projects-issues commented Feb 9, 2017

constantin mitocaru opened DATASOLR-363 and commented

When I updated from 2.0.5 to 2.1.0.RELEASE the respository operations fail because it seems that SOlrTemplate is appending the domain object class name (to lower case) to the url of the solr server

My existing solr url is http://localhost:8983/solr/coreNlpStc but now it tries to access

Caused by: org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: Error from server at http://localhost:8983/solr/coreNlpStc: Expected mime type application/octet-stream but got text/html. <html>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title>Error 404 Not Found</title>
<body><h2>HTTP ERROR 404</h2>
<p>Problem accessing /solr/coreNlpStc/outputsentence/update. Reason:
<pre>    Not Found</pre></p>

My domain object is named OutputSentence

If this is a result of a new feature added to 2.1.0 please indicate how do I resolve my problem ini the new version

Affects: 2.1 RC1 (Ingalls)

Issue Links:

  • DATASOLR-364 Duplicate core names in Solr Url

  • DATASOLR-321 SolrTemplate should autoselect the core to use brefore requesting the solr client

2 votes, 4 watchers

Copy link

@spring-projects-issues spring-projects-issues commented Apr 11, 2017

Christoph Strobl commented

please try adding @SolrDocument(solrCore="collection...") to your domain types to indicate the collection to store to

Copy link

@spring-projects-issues spring-projects-issues commented Apr 13, 2017

Christoph Strobl commented

seems you're using the multicore support that a bug in the current release. There should be a fix in place with DATASOLR-364 which will be part of the Ingalls SR2 release (currently scheduled for next week).

Copy link

@spring-projects-issues spring-projects-issues commented Jan 7, 2021

If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.

Copy link

@spring-projects-issues spring-projects-issues commented Jan 14, 2021

Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.