You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Gregory Chanan (JIRA)" <ji...@apache.org> on 2014/09/19 21:25:33 UTC

[jira] [Updated] (SOLR-6543) Give HttpSolrServer the ability to send PUT requests

     [ 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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org