Re: Error when indexing with SolrJ HTTP ERROR 405

2018-03-20 Thread Shawn Heisey
On 3/18/2018 9:46 PM, Khalid Moustapha Askia wrote: SolrClient client = new HttpSolrClient.Builder(" http://localhost:8983/solr/#/corename";).build(); When I remove the "#" It throws a NullPointerException URLs with # in them will ONLY work in a browser.  They will not work for SolrJ.  T

Re: Error when indexing with SolrJ HTTP ERROR 405

2018-03-20 Thread Zheng Lin Edwin Yeo
Regarding the # in the Solr Url, I found that I also have the # that appears automatically in the Solr URL when I'm at the Solr Admin UI. Even when I correct it to remove it, it will appear again. How can we remove the #? Regards, Edwin On 19 March 2018 at 17:36, Vincenzo D'Amore wrote: > Pay

Re: Error when indexing with SolrJ HTTP ERROR 405

2018-03-19 Thread Vincenzo D'Amore
Pay attention to # in the Solr Url http://localhost:8983/solr/#/corename Try to correct it into http://localhost:8983/solr/corename On Mon, Mar 19, 2018 at 8:47 AM, Shamik Sinha wrote: > You need to send binary content instead of html. Atleast that is what the > error shows. > > I also think

Re: Error when indexing with SolrJ HTTP ERROR 405

2018-03-19 Thread Shamik Sinha
You need to send binary content instead of html. Atleast that is what the error shows. I also think the url is wrong. The correct url should have http://localhost:8983/solr/core/update Check first whether indexing is working on the same data that you are trying to or not using the browser based

Error when indexing with SolrJ HTTP ERROR 405

2018-03-19 Thread Khalid Moustapha Askia
Hi. I am trying to index some data with Solr by using SolrJ. But I have this error that I can't solve. - Exception in thread "main" org.apache.solr.client.solrj.impl.HttpSolrClient$Remot