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

Erik Hatcher commented on SOLR-1955:
------------------------------------

You sure this isn't just operator error on the curl command with that ampersand 
in there?  ;)

I haven't tried it, but I'm guessing that's the issue.  I always quote the 
entire URL when using curl.

> DocumentAnlysisRequestHandler (/analysis/document/) fails when 
> wt=json&indent=true params used
> ----------------------------------------------------------------------------------------------
>
>                 Key: SOLR-1955
>                 URL: https://issues.apache.org/jira/browse/SOLR-1955
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: Next
>         Environment: I tested this on trunk of Solr to see if it still 
> existed.
>            Reporter: Eric Pugh
>            Priority: Minor
>
> If you append either wt=json or indent=true, everything works great!  But if 
> you add both params, then you get general error:
> <body><h2>HTTP ERROR 400</h2>
> <p>Problem accessing /solr/analysis/document. Reason:
> <pre>    DocumentAnlysisRequestHandler expects a single content stream with 
> documents to analyze</pre></p>
> Works:
> curl http://localhost:8983/solr/analysis/document?indent=true -H 
> 'Content-type:text/xml; charset=utf-8' --data-binary '<docs><doc><field 
> name="id">1</field><field name="text">The Text Value</field></doc></docs>'
> curl http://localhost:8983/solr/analysis/document?wt=json -H 
> 'Content-type:text/xml; charset=utf-8' --data-binary '<docs><doc><field 
> name="id">1</field><field name="text">The Text Value</field></doc></docs>'
> Blows up:
> curl http://localhost:8983/solr/analysis/document?wt=json&indent=true -H 
> 'Content-type:text/xml; charset=utf-8' --data-binary '<docs><doc><field 
> name="id">1</field><field name="text">The Text Value</field></doc></docs>'

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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

Reply via email to