[MGNLEESOLR-129] Update to solrj 7.3.0 Created: 03/May/18  Updated: 03/Dec/20  Resolved: 11/May/18

Status: Closed
Project: Solr Search Provider
Component/s: None
Affects Version/s: None
Fix Version/s: 5.2

Type: Bug Priority: Neutral
Reporter: Milan Divilek Assignee: Milan Divilek
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
relation
is related to MGNLEESOLR-127 Sample magnolia solr configuration fo... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Sprint: Kromeriz 145, Kromeriz 146, Kromeriz 147
Story Points: 2

 Description   

ClassCastException occurs when spellcheck.collate is enabled. Problem is that older Solr5 were returning collations 'hits' as Integer, but with Solr 7 it's Long.
spellcheck.collate can be disable in magnolia sample solrconfig.xml, but that's just workaround... and solrj should be updated to 7.x, because Solr 5 is EOL

Caused by: java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.Integer
	at org.apache.solr.client.solrj.response.SpellCheckResponse.<init>(SpellCheckResponse.java:73) ~[solr-solrj-5.3.1.jar:5.3.1 1703449 - noble - 2015-09-17 01:48:17]
	at org.apache.solr.client.solrj.response.QueryResponse.extractSpellCheckInfo(QueryResponse.java:180) ~[solr-solrj-5.3.1.jar:5.3.1 1703449 - noble - 2015-09-17 01:48:17]
	at org.apache.solr.client.solrj.response.QueryResponse.setResponse(QueryResponse.java:154) ~[solr-solrj-5.3.1.jar:5.3.1 1703449 - noble - 2015-09-17 01:48:17]
	at org.apache.solr.client.solrj.SolrRequest.process(SolrRequest.java:135) ~[solr-solrj-5.3.1.jar:5.3.1 1703449 - noble - 2015-09-17 01:48:17]
	at org.apache.solr.client.solrj.SolrClient.query(SolrClient.java:943) ~[solr-solrj-5.3.1.jar:5.3.1 1703449 - noble - 2015-09-17 01:48:17]
	at org.apache.solr.client.solrj.SolrClient.query(SolrClient.java:958) ~[solr-solrj-5.3.1.jar:5.3.1 1703449 - noble - 2015-09-17 01:48:17]
	at info.magnolia.search.solrsearchprovider.logic.providers.FacetedSolrSearchProvider.performSuggestionsQuery(FacetedSolrSearchProvider.java:302) ~[magnolia-solr-search-provider-5.2-SNAPSHOT.jar:?]

Generated at Mon Feb 12 11:00:24 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.