[DATASOLR-363] SolrTeplate now appends the domain object name to solr url Created: 09/Feb/17  Updated: 05/Nov/19

Status: Waiting for Feedback
Project: Spring Data for Apache Solr
Component/s: Repository
Affects Version/s: 2.1 RC1 (Ingalls)
Fix Version/s: None

Type: Bug Priority: Major
Reporter: constantin mitocaru Assignee: Christoph Strobl
Resolution: Unresolved Votes: 2
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

JDK8 Windows and CentOS

Issue Links:
relates to DATASOLR-364 Duplicate core names in Solr Url Closed
is related to DATASOLR-321 SolrTemplate should autoselect the co... Closed
Last updater: Christoph Strobl
Sprint: Kay RC1, Kay RC3, Kay GA, Kay SR1, Lovelace M1, Lovelace M2 / M3, Lovelace RC1, Lovelace GA, Lovelace SR1, Moore RC1, Moore RC2, Moore SR1, Moore SR2


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

Comment by Christoph Strobl [ 11/Apr/17 ]

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

Comment by Christoph Strobl [ 13/Apr/17 ]

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).

Generated at Tue Nov 12 04:01:31 UTC 2019 using Jira 7.13.8#713008-sha1:1606a5c1e7006e1ab135aac81f7a9566b2dbc3a6.