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 the following: UpdateRequest req = new UpdateRequest(); req.add(doc); req.setCommitWithin(commitWithinMs); req.process(client, collection); So you can do that your self and first set the basic auth credentials on the UpdateRequest which extends SolrRequest. Thanks, Bryan On Thu, Feb 16, 2017 at 5:45 AM, vrindavda <[email protected]> wrote: > 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.nabble.com/Solr6-3-0-SolrJ-API-for-Basic-Authentication-tp4320238p4320675.html > Sent from the Solr - User mailing list archive at Nabble.com.
