Hi -

With solr 1.2, when using XmlUpdateRequestHandler , if I post a valid
command like "<commit/>" I get a response like

<?xml version="1.0" encoding="UTF-8"?>
<response>
<lst name="responseHeader"><int name="status">0</int><int
name="QTime">0</int></lst>
</response>

Nice, valid xml. But If I have an error (for example, <commit></comit>) I
get an HTML page back.

This tends to confuse the client software. Is there a way to get a return
like:

<?xml version="1.0" encoding="UTF-8"?>
<response>
<lst name="responseHeader"><int name="status">1</int><exception>blah, blah,
blah</exeption><int name="QTime">0</int></lst>
</response>


I've seen comments in solrconfig about setting handleSelect to true or
false, but didn't see any difference with either setting.

I've actually written my own handler, but since XmlUpdateHandler does the
same thing, I thought it would make a simple example.

Am I doing something wrong? Or is there some config I need to do, or is that
just how it is?

Tom

Reply via email to