On 12/21/22 08:24, Joe Jones (DHCW - Software Development) wrote:
In transitioning from Solr 5.4.1 to 9.1 I am not sure if I have found a bug
with overwriting the QueryResponseWriter to output XML. E.g.
<queryResponseWriter name="xml" default="true" class="solr.XMLResponseWriter" />
The reference guide states indentation is optional and the default is not to indent but
the only way to turn off indentation is to supply the query parameter
"indent=false"
Is this a bug or am I missing a setting?
Looks like the documentation is wrong about the default and exactly what
to send to get it to change.
My install actually is configured to default to xml because that is what
dovecot expects. It's running Solr 9.2.0-SNAPSHOT in cloud mode. It is
compiled from branch_9x with a few code changes not related in any way
to response writers.
If I send a request without the indent parameter, then the XML output is
indented.
If I send a request with "indent=off" or "indent=false" then it is not
indented.
The same thing happens with wt=json.
Thanks,
Shawn