[ 
https://issues.apache.org/jira/browse/SOLR-13683?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16903143#comment-16903143
 ] 

Niranjan Nanda commented on SOLR-13683:
---------------------------------------

[~shalinmangar] About the builder method {{withHttpClient}} - is there a chance 
to enhance it in future release? If so, any timeline?

Regarding other suggestions,
 * We are planning to use {{CloudHttp2SolrClient}}. I believe this uses Jetty's 
http client APIs instead of Apache's.
 * Our use case is indexing documents to Solr; hence, we do not use 
{{SolrRequest}} APIs. We use {{SolrClient.add(collectionName, 
Collection<SolrInputDocument>)}} API. Do you have any document which shows how 
to use {{SolrRequest}} API for indexing use cases?

Regardless I think it's easier to set the custom headers as part of the 
underneath HTTP Client (Apache/Jetty) instead of setting it for every request.

> SolrJ 8.1.1 Http2SolrClient should allow customizing HTTP headers
> -----------------------------------------------------------------
>
>                 Key: SOLR-13683
>                 URL: https://issues.apache.org/jira/browse/SOLR-13683
>             Project: Solr
>          Issue Type: Improvement
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: clients - java
>    Affects Versions: 8.1.1
>            Reporter: Niranjan Nanda
>            Priority: Minor
>
> Currently {{Http2SolrClient}} does not allow configuring custom headers. For 
> example, how to pass Basic Auth headers? It should expose some builder APIs 
> to pass such headers.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to