11.05.2016 Views

Apache Solr Reference Guide Covering Apache Solr 6.0

21SiXmO

21SiXmO

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

csv<br />

json<br />

php<br />

phps<br />

python<br />

ruby<br />

smile<br />

velocity<br />

xml<br />

xslt<br />

CSVResponseWriter<br />

JSONResponseWriter<br />

PHPResponseWriter<br />

PHPSerializedResponseWriter<br />

PythonResponseWriter<br />

RubyResponseWriter<br />

SmileResponseWriter<br />

VelocityResponseWriter<br />

XMLResponseWriter<br />

XSLTResponseWriter<br />

The Standard XML Response Writer<br />

The XML Response Writer is the most general purpose and reusable Response Writer currently included with<br />

<strong>Solr</strong>. It is the format used in most discussions and documentation about the response of <strong>Solr</strong> queries.<br />

Note that the XSLT Response Writer can be used to convert the XML produced by this writer to other<br />

vocabularies or text-based formats.<br />

The behavior of the XML Response Writer can be driven by the following query parameters.<br />

The version Parameter<br />

The version parameter determines the XML protocol used in the response. Clients are strongly encouraged to<br />

always specify the protocol version, so as to ensure that the format of the response they receive does not<br />

change unexpectedly if the <strong>Solr</strong> server is upgraded and a new default format is introduced.<br />

Currently supported version values are:<br />

XML<br />

Version<br />

Notes<br />

2.2 The format of the responseHeader changed to use the same structure as the rest of the<br />

response.<br />

The default value is the latest supported.<br />

The stylesheet Parameter<br />

The stylesheet parameter can be used to direct <strong>Solr</strong> to include a declaration in the XML response it returns.<br />

The default behavior is not to return any stylesheet declaration at all.<br />

Use of the stylesheet parameter is discouraged, as there is currently no way to specify external<br />

stylesheets, and no stylesheets are provided in the <strong>Solr</strong> distributions. This is a legacy parameter, which<br />

may be developed further in a future release.<br />

<strong>Apache</strong> <strong>Solr</strong> <strong>Reference</strong> <strong>Guide</strong> <strong>6.0</strong><br />

393

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!