Re: Upgrading solarj from 6.5.1 to 8.0.0

2019-03-25 Thread Jason Gerlowski
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

Re: Upgrading solarj from 6.5.1 to 8.0.0

2019-03-21 Thread Erick Erickson
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

Re: Upgrading solarj from 6.5.1 to 8.0.0

2019-03-21 Thread Lahiru Jayasekera
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

Re: Upgrading solarj from 6.5.1 to 8.0.0

2019-03-21 Thread Jason Gerlowski
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

Upgrading solarj from 6.5.1 to 8.0.0

2019-03-20 Thread Lahiru Jayasekera
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(