Interface QueryResponseWriter

All Superinterfaces:
NamedListInitializedPlugin
All Known Subinterfaces:
TextQueryResponseWriter
All Known Implementing Classes:
CborResponseWriter, CSVResponseWriter, GeoJSONResponseWriter, GraphMLResponseWriter, JacksonJsonWriter, JavaBinResponseWriter, JSONResponseWriter, PrometheusResponseWriter, RawResponseWriter, SchemaXmlResponseWriter, SmileResponseWriter, XMLResponseWriter

@ThreadSafe public interface QueryResponseWriter extends NamedListInitializedPlugin
Used to format responses to the client (not necessarily a "query").

Different QueryResponseWriters are registered with the SolrCore. One way to register a QueryResponseWriter with the core is through the solrconfig.xml file.

Example solrconfig.xml entry to register a QueryResponseWriter implementation to handle all queries with a writer type of "simple":

<queryResponseWriter name="simple" class="foo.SimpleResponseWriter" />

A single instance of any registered QueryResponseWriter is created via the default constructor and is reused for all relevant queries.