Re: SolrJ, CloudSolrClient and basic authentication

2019-06-03 Thread Kevin Risden
Chris - not sure if what you are seeing is related to basic auth credentials not being sent until a 401. There was report of this behavior with Apache Knox in front of Solr. https://issues.apache.org/jira/browse/KNOX-1066 The jira above has an example of how to preemptively send basic auth

Re: SolrJ, CloudSolrClient and basic authentication

2019-05-31 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Dimitris, On 6/1/18 02:46, Dimitris Kardarakos wrote: > Thanks a lot Shawn. I had tried with the documented approach, but > since I use SolrClient.add to add documents to the index, I could > not "port" the documented approach to my case (probably

Re: SolrJ, CloudSolrClient and basic authentication

2018-06-01 Thread Dimitris Kardarakos
Thanks a lot Shawn. I had tried with the documented approach, but since I use SolrClient.add to add documents to the index, I could not "port" the documented approach to my case (probably I do miss something). The custom HttpClient suggestion worked as expected! On 31/05/2018 06:16 μμ, Shawn

Re: SolrJ, CloudSolrClient and basic authentication

2018-05-31 Thread Shawn Heisey
On 5/31/2018 8:03 AM, Dimitris Kardarakos wrote: > Following the feedback in the "Index protected zip" thread, I am > trying to add documents to the index using SolrJ API. > > The server is in SolrCloud mode with BasicAuthPlugin for authentication. > > I have not managed to figure out how to pass

SolrJ, CloudSolrClient and basic authentication

2018-05-31 Thread Dimitris Kardarakos
Hi. Following the feedback in the "Index protected zip" thread, I am trying to add documents to the index using SolrJ API. The server is in SolrCloud mode with BasicAuthPlugin for authentication. I have not managed to figure out how to pass username/password to my client. Thanks, --