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