> I can > manually create an httpclient and set up authentication but then I can't use > solrj.
Yes; correct; except that you _can_ use solj with this custom HttpClient instance (which will intercept authentication, which will support cookies, SSL or plain HTTP, Keep-Alive, and etc.) You can provide to SolrJ custom HttpClient at construction: final HttpSolrServer myHttpSolrServer = new HttpSolrServer( SOLR_URL_BASE + "/" + SOLR_CORE_NAME, myHttpClient); Best Regards, http://www.tokenizer.ca -----Original Message----- From: Anurag Sharma [mailto:anura...@gmail.com] Sent: November-17-14 11:21 AM To: solr-user@lucene.apache.org Subject: Re: Solr HTTP client authentication I think Solr encourage SSL than authentication On Mon, Nov 17, 2014 at 6:08 PM, Bai Shen <baishen.li...@gmail.com> wrote: > I am using solrj to connect to my solr server. However I need to > authenticate against the server and can not find out how to do so > using solrj. Is this possible or do I need to drop solrj? I can > manually create an httpclient and set up authentication but then I can't use > solrj. > > Thanks. >