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

Ryan McKinley commented on SOLR-3387:
-------------------------------------

Since solr 1.1, the content-type is required for post body
{code}
curl http://localhost:8983/solr/update --data-binary @books.json
{code}
returns 400 'missing content stream'

We could try to auto detect the content type, but that is unrelated to this 
issue.  To support this, we would want a different approach in 
SolrRequestParsers.  see line 394 in SolrRequestParsers

Yonik do you want to open a new issue for trying to auto-detect content-type?

                
> UpdateRequestHandler should support XML,CSV,JSON, and javabin
> -------------------------------------------------------------
>
>                 Key: SOLR-3387
>                 URL: https://issues.apache.org/jira/browse/SOLR-3387
>             Project: Solr
>          Issue Type: Improvement
>            Reporter: Ryan McKinley
>             Fix For: 4.0
>
>
> Rather then have 4 handlers to support 4 content types, we should use a 
> single endpoint and pick the ContentStreamLoader based on the ContentType
> This will simplify configuration problems for clients that want to swtich 
> format (see SOLR-3038)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to