Re: 4 days and no solution - please help on Solr

2018-08-11 Thread Jason Gerlowski
You're right that "Update" is a little misleading as a name. Solr uses that term across the board to refer to new or updated docs. The "add-documents" API is /solr/collection_name/update and is implemented by "UpdateRequestHandlers". You can configure Solr to massage documents before indexing

Re: 4 days and no solution - please help on Solr

2018-08-10 Thread ☼ R Nair
Thanks Christoper and Jason. Problem solved. What you mentioned works. Thanks a million. Have a good weekend. Best, Ravion On Fri, Aug 10, 2018 at 3:31 PM Christopher Schultz < ch...@christopherschultz.net> wrote: > Ravion, > > What's wrong with "update request"? Updating a document that does

Re: 4 days and no solution - please help on Solr

2018-08-10 Thread Christopher Schultz
Ravion, What's wrong with "update request"? Updating a document that does not exist... will add it. -chris On 8/10/18 3:01 PM, ☼ R Nair wrote: > Do you feel that this is only partially complete? > > Best, Ravion > > On Fri, Aug 10, 2018, 1:37 PM ☼ R Nair wrote: > >> I saw this. Please

Re: 4 days and no solution - please help on Solr

2018-08-10 Thread ☼ R Nair
Do you feel that this is only partially complete? Best, Ravion On Fri, Aug 10, 2018, 1:37 PM ☼ R Nair wrote: > I saw this. Please provide for add. My issue is with add. There is no > "AddRequesg". So how to do that, thanks > > Best Ravion > > On Fri, Aug 10, 2018, 12:58 PM Jason Gerlowski >

Re: 4 days and no solution - please help on Solr

2018-08-10 Thread ☼ R Nair
I saw this. Please provide for add. My issue is with add. There is no "AddRequesg". So how to do that, thanks Best Ravion On Fri, Aug 10, 2018, 12:58 PM Jason Gerlowski wrote: > The "setBasicAuthCredentials" method works on all SolrRequest > implementations. There's a corresponding

Re: 4 days and no solution - please help on Solr

2018-08-10 Thread Jason Gerlowski
The "setBasicAuthCredentials" method works on all SolrRequest implementations. There's a corresponding SolrRequest object for most common Solr APIs. As you mentioned, I used QueryRequest above, but the same approach works for any SolrRequest object. The specific one for indexing is

Re: 4 days and no solution - please help on Solr

2018-08-10 Thread ☼ R Nair
Hi Jason, Thanks for replying. I am adding a document, not querying. I am using 7.3 apis. Adding a document is done via solrclient.add(). How to set authentication in this case? Seems I can't use SolrRequest. Thx, bye RAVION On Fri, Aug 10, 2018, 10:46 AM Jason Gerlowski wrote: > I'd

Re: 4 days and no solution - please help on Solr

2018-08-10 Thread Jason Gerlowski
I'd tried to type my previous SolrJ example snippet from memory. That didn't work out so great. I've corrected it below: final List zkUrls = new ArrayList<>(); zkUrls.add("localhost:9983"); final SolrClient client = new CloudSolrClient.Builder(zkUrls, Optional.empty()).build(); final Map

Re: 4 days and no solution - please help on Solr

2018-08-10 Thread Jason Gerlowski
I would also recommend removing the username/password from your Solr base URL. You might be able to get things working that way, but it's definitely less common, and it wouldn't surprise me if some parts of SolrJ mishandle a URL in that format. Though that's just a hunch on my part. On Fri, Aug

Re: 4 days and no solution - please help on Solr

2018-08-10 Thread Jason Gerlowski
Hi Ravion, (Note: I'm not sure what Solr version you're using. My answer below assumes Solr 7 APIs. These APIs don't change often, but you might find them under slightly different names in your version of Solr.) SolrJ provides 2 ways (that I know of) to provide basic auth credentials. The

4 days and no solution - please help on Solr

2018-08-09 Thread ☼ R Nair
Dear all, I have tried my best to do it - searched all Google. But I an=m unsuccessful. Kindly help. We have a solo environment. Its secured with userid and password. I used CloudSolrClient.Builder(solrURLs).withHttpClient(mycloseablehttpclient) method to access it. The url is of the form