So starting to update ancient solr app to 9.1 and also the SolrJ indexer. When I try to add a document, I am getting Exception in thread "main" org.apache.solr.client.solrj.impl.BaseHttpSolrClient$RemoteSolrException: Error from server at http://my.host:8983/solr/qmap: Searching for Solr You must type the correct path Solr will respond
I can see the qmap core in the solr admin and solr is running. Code is: public class DocumentIndexer { private final String fileToIndex; private final ConcurrentUpdateHttp2SolrClient solrClient; private final Http2SolrClient http2Client; public DocumentIndexer(String solrUrl, String fileToIndex) { this.fileToIndex =fileToIndex; http2Client = new Http2SolrClient.Builder().build(); solrClient = new ConcurrentUpdateHttp2SolrClient.Builder(solrUrl, http2Client).build(); } public void indexDocuments() throws IOException, SolrServerException{ ContentStreamUpdateRequest req = new ContentStreamUpdateRequest("/update/extract"); req.setAction(AbstractUpdateRequest.ACTION.COMMIT, true, true); req.addFile(new File(fileToIndex),"application/xml"); req.setParam("id", fileToIndex); req.process(solrClient); solrClient.commit(true, true); } } ________________________________________________ Ngā mihi, Nā Phil Scadden Te Raraunga me te Tātaritanga Mokowā Aronuku (Geospatial Data and Analysis) GNS Science Te Pῡ Ao 764 Cumberland St, Private Bag 1930, Dunedin, New Zealand Ph +64 3 4799663, 027 3463185 “Whāia te iti kahurangi ki te tūohu koe me he maunga teitei” Notice: This email and any attachments are confidential and may not be used, published or redistributed without the prior written consent of the Institute of Geological and Nuclear Sciences Limited (GNS Science). If received in error please destroy and immediately notify GNS Science. Do not copy or disclose the contents.