lux.solr
Class LuxResponseWriter

java.lang.Object
  extended by lux.solr.LuxResponseWriter
All Implemented Interfaces:
org.apache.solr.response.QueryResponseWriter, org.apache.solr.util.plugin.NamedListInitializedPlugin

public class LuxResponseWriter
extends Object
implements org.apache.solr.response.QueryResponseWriter

Writes out the result of Lux evaluations lux.contentType controls the response's content-type header, and the serialization of nodes: default is html. Output is always serialized as utf-8. lux.xml-xsl-stylesheet


Field Summary
 
Fields inherited from interface org.apache.solr.response.QueryResponseWriter
CONTENT_TYPE_TEXT_ASCII, CONTENT_TYPE_TEXT_UTF8, CONTENT_TYPE_XML_UTF8
 
Constructor Summary
LuxResponseWriter()
           
 
Method Summary
 String getContentType(org.apache.solr.request.SolrQueryRequest request, org.apache.solr.response.SolrQueryResponse response)
           
 void init(org.apache.solr.common.util.NamedList args)
           
 void write(Writer writer, org.apache.solr.request.SolrQueryRequest request, org.apache.solr.response.SolrQueryResponse response)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LuxResponseWriter

public LuxResponseWriter()
Method Detail

write

public void write(Writer writer,
                  org.apache.solr.request.SolrQueryRequest request,
                  org.apache.solr.response.SolrQueryResponse response)
           throws IOException
Specified by:
write in interface org.apache.solr.response.QueryResponseWriter
Throws:
IOException

getContentType

public String getContentType(org.apache.solr.request.SolrQueryRequest request,
                             org.apache.solr.response.SolrQueryResponse response)
Specified by:
getContentType in interface org.apache.solr.response.QueryResponseWriter

init

public void init(org.apache.solr.common.util.NamedList args)
Specified by:
init in interface org.apache.solr.response.QueryResponseWriter
Specified by:
init in interface org.apache.solr.util.plugin.NamedListInitializedPlugin


Copyright © 2013. All Rights Reserved.