Hi Lahiru,
I had a chance to refresh myself on how this works over the weekend.
There are two ways in SolrJ to talk to a Solr protected by basic-auth:
1. The SolrRequest.setBasicAuthCredentials() method I mentioned
before. This can be painful though, and isn't even possible in all
usecases.
2. C
One tangent just so you’re aware. You _must_ re-index from scratch. Lucene 8x
will refuse to open an index that was _ever_ touched by Solr 6.
Best,
Erick
> On Mar 21, 2019, at 8:26 AM, Lahiru Jayasekera
> wrote:
>
> Hi Jason,
> Thanks for the response. I saw the method of setting credentials
Hi Jason,
Thanks for the response. I saw the method of setting credentials based on
individual request.
But I need to set the credentials at solrclient level. If you remember the
way to do it please let me know.
Thanks
On Thu, Mar 21, 2019 at 8:26 PM Jason Gerlowski
wrote:
> You should be able
You should be able to set credentials on individual requests with the
SolrRequest.setBasicAuthCredentials() method. That's the method
suggested by the latest Solr ref guide at least:
https://lucene.apache.org/solr/guide/7_7/basic-authentication-plugin.html#using-basic-auth-with-solrj
There might
Hi all,
I need help implementing the following code in solarj 8.0.0.
private SolrClient server, adminServer;
this.adminServer = new HttpSolrClient(SolrClientUrl);
this.server = new HttpSolrClient( SolrClientUrl + "/" + mapping.getCoreName() );
if (serverUserAuth) {
HttpClientUtil.setBasicAuth(