Solr - tworzy instancję HttpSolrServer za pomocą Httpclient
Muszę połączyć się z naszym serwerem Solr, który znajduje się za serwerem proxy (?). Po tym spróbowałem (nic specjalnego):
SolrServer server = new HttpSolrServer("https://urltosolr/solr");
try {
SolrPingResponse pingResponse = server.ping();
} catch (SolrServerException e) {
....
}
Ślad stosu:
org.apache.solr.client.solrj.SolrServerException: IOException occured when talking to server at: https://urltosolr/solr
...
Caused by: javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated
Następnie próbowałem innego konstruktora dla HttpSolrServer, ale nie wiem, jak poprawnie ustawić nazwę użytkownika i hasło w HttpClient. Czy ktoś może pomóc?