Hey,
The other alternative would be to implement a HttpClientConfigurer which
can perform preemptive basic authentication (just the same way SolrRequest
is sending the credentials). The code is available in the branch_6x here,
https://github.com/apache/lucene-solr/blob/1bfa057d5c9d89b116031baa749
Hello,
The QueryRequest was just an example, it will work with any request
that extends SolrRequest.
How are you indexing your documents?
I am going to assume you are doing something like this:
SolrClient client = ...
client.add(solrInputDocument);
Behind the scenes this will do something like
Hi Bryan,
Thanks for your quick response.
I am trying to ingest data into SolrCloud, Hence I will not have any solr
query. Will it be right approach to use QueryRequest to index data ? Do I
need to put any dummy solrQuery instead ?
--
View this message in context:
http://lucene.472066.n3.nab
Hello,
The exception you are getting looks more like you can't connect to the
IP address from where your SolrJ code is running, but not sure.
For the basic credentials, rather than trying to do something with the
http client, you can provide them on the request like this:
QueryRequest req = new