[DATASOLR-363] SolrTeplate now appends the domain object name to solr url Created: 09/Feb/17  Updated: 18/Jun/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
Environment:

JDK8 Windows and CentOS


Issue Links:
Relate
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

 Description   

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>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title>Error 404 Not Found</title>
</head>
<body><h2>HTTP ERROR 404</h2>
<p>Problem accessing /solr/coreNlpStc/outputsentence/update. Reason:
<pre>    Not Found</pre></p>
</body>
</html>

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



 Comments   
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 Jul 23 09:56:09 UTC 2019 using JIRA 7.9.2#79002-sha1:3bb15b68ecd99a30eb364c4c1a393359bcad6278.