Package org.apache.solr.scripting.xslt
Class XSLTResponseWriter
java.lang.Object
org.apache.solr.scripting.xslt.XSLTResponseWriter
- All Implemented Interfaces:
QueryResponseWriter,TextQueryResponseWriter,NamedListInitializedPlugin
Customize the format of your search results via XSL stylesheet applied to the default XML
response format.
QueryResponseWriter captures the output of the XMLWriter (in memory for now, not optimal performance-wise), and applies an XSLT transform to it.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.solr.response.TextQueryResponseWriter
TextQueryResponseWriter.NonFlushingStream -
Field Summary
FieldsFields inherited from interface org.apache.solr.response.QueryResponseWriter
CONTENT_TYPE_TEXT_UTF8, CONTENT_TYPE_XML_UTF8 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetContentType(SolrQueryRequest request, SolrQueryResponse response) protected TransformergetTransformer(SolrQueryRequest request) voidinit(org.apache.solr.common.util.NamedList<?> n) voidwrite(Writer writer, SolrQueryRequest request, SolrQueryResponse response) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.solr.response.QueryResponseWriter
writeMethods inherited from interface org.apache.solr.response.TextQueryResponseWriter
write, writeToString
-
Field Details
-
DEFAULT_CONTENT_TYPE
- See Also:
-
-
Constructor Details
-
XSLTResponseWriter
public XSLTResponseWriter()
-
-
Method Details
-
init
public void init(org.apache.solr.common.util.NamedList<?> n) - Specified by:
initin interfaceNamedListInitializedPlugin
-
getContentType
- Specified by:
getContentTypein interfaceQueryResponseWriter
-
write
public void write(Writer writer, SolrQueryRequest request, SolrQueryResponse response) throws IOException - Specified by:
writein interfaceTextQueryResponseWriter- Throws:
IOException
-
getTransformer
- Throws:
IOException
-