I'm working on a system that uses SolrJ on top of DSE for searching purposes. Currently, I'm implementing search features using SolrJ in Java. I created the SolrClient using base URL (http://localhost:PORT/solr) and I'm trying to specify the collection when requesting query
client.query("collectionName", query);
However, it seems to me that SolrJ is ignoring collection because I'm getting the following error:
/solr/update The requested resource is not available.
When I'm adding a collection to SolrClient URL instead of in query function, it works fine. This solution is blocking me from using a single client to request for many collections, so I want to use the first one. Anyone encountered this?
EDIT: I've checked also on 6.6. Still the same. Full error:
Error from server at http://localhost:8983/solr: Expected mime type application/octet-stream but got text/html. Apache Tomcat/8.0.47 - Error reportH1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}.line {height: 1px; background-color: #525D76; border: none;}
HTTP Status 404 - /solr/update
type Status report
message /solr/update
description The requested resource is not available.
Apache Tomcat/8.0.47
org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: Error from server at http://localhost:8983/solr: Expected mime type application/octet-stream but got text/html. Apache Tomcat/8.0.47 - Error reportH1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}.line {height: 1px; background-color: #525D76; border: none;}HTTP Status 404 - /solr/update
type Status report
message /solr/update
description The requested resource is not available.
Apache Tomcat/8.0.47