[
https://issues.apache.org/jira/browse/SOLR-6543?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Gregory Chanan updated SOLR-6543:
---------------------------------
Attachment: SOLR-6543.patch
Here's a patch with a unit test. Note I only changed the client side. On the
server side, we may eventually want to support better parsing in
SolrRequestParsers (right now, only the queryString of puts are parsed) and to
handle the caching in HttpCacheHeaderUtil. But since puts are only used in the
schema API, and that is handled by the REST API that doesn't use those classes,
this is sufficient.
> Give HttpSolrServer the ability to send PUT requests
> ----------------------------------------------------
>
> Key: SOLR-6543
> URL: https://issues.apache.org/jira/browse/SOLR-6543
> Project: Solr
> Issue Type: Improvement
> Components: SolrJ
> Reporter: Gregory Chanan
> Priority: Minor
> Attachments: SOLR-6543.patch
>
>
> Given that the schema API has a PUT request
> (https://cwiki.apache.org/confluence/display/solr/Schema+API#SchemaAPI-Createonenewschemafield)
> it would be nice if HttpSolrServer supported sending PUTs, so it could be
> used for sending that type of request. Note if we really wanted to fully
> support that request we'd probably want a Request/Response type in solrj as
> well, but that can be handled in a separate issue.
> Also, administrators may add arbitrary filters that require PUT requests. In
> my own setup, I have a version of Hadoop's
> DelegationTokenAuthenticationFilter sitting in front of the dispatch filter.
> Here also it would be nice if I could send all requests via HttpSolrServer.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]