Maximilian Hütter wrote:
Hi all,
I switched to Solr version 1.2 and found that the response format
changed completely for the error responses (for updates), which are
delivered as HTML-Pages.
Check the status code for the response. Anything not OK will have some
code != 200. Using java's HttpURLConnection, you can get all the error
information from:
getResponseCode()
getResponseMessage()
Other languages will have similar functions. The HTML decoration is
added from the servlet containter -- it does not have any extra information.
Before it was just XML coming back in all cases. Is there a way to
change this to XML? Some switch in the solrconfig.xml I didn't see?
Check the 'Upgrading from Solr 1.1' paragraph in CHANGES.txt
http://svn.apache.org/repos/asf/lucene/solr/tags/release-1.2.0/CHANGES.txt
In short, to have identical behavior from 1.1 make sure there is not a
request handler mapped to /update
ryan