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,
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
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:
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
Hello ,
I am trying to connect SolrCloud using SolrJ API using following code :
String zkHostString = "localhost:9983";
String USER = "solr";
String PASSWORD = "SolrRocks";
CredentialsProvider credentialsProvider = new
BasicCredentialsProvider();