lux.solr
Class AppServerComponent

java.lang.Object
  extended by org.apache.solr.handler.component.SearchComponent
      extended by org.apache.solr.handler.component.QueryComponent
          extended by lux.solr.XQueryComponent
              extended by lux.solr.AppServerComponent
All Implemented Interfaces:
org.apache.solr.core.SolrInfoMBean, org.apache.solr.util.plugin.NamedListInitializedPlugin, org.apache.solr.util.plugin.SolrCoreAware

public class AppServerComponent
extends XQueryComponent

This component supplies a level of indirection, reading the query from a location specified in the lux.xquery parameter. When the queries are in a directory, this functions like an xquery application service. TODO: merge w/XQueryComponent. The only distinction is that one gets its query from the "q" parameter and interprets it as the query body, and the other gets the location of a query document from the "lux.xquery" parameter. Having two separate components causes us to create two Compilers, two Processors, etc. TODO: add extended support for accessing HTTP request and controlling HTTP response via xquery; eg for redirects, binary responses, file upload, etc.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.solr.core.SolrInfoMBean
org.apache.solr.core.SolrInfoMBean.Category
 
Field Summary
 
Fields inherited from class lux.solr.XQueryComponent
fields, LUX_PATH_INFO, LUX_XQUERY, queryPath, solrIndexConfig, XQUERY_COMPONENT_NAME
 
Fields inherited from class org.apache.solr.handler.component.QueryComponent
COMPONENT_NAME
 
Constructor Summary
AppServerComponent()
           
 
Method Summary
 void prepare(org.apache.solr.handler.component.ResponseBuilder rb)
           
 void process(org.apache.solr.handler.component.ResponseBuilder rb)
          ignores start and len query parameters
 
Methods inherited from class lux.solr.XQueryComponent
addResult, evaluateQuery, getDescription, getSolrIndexConfig, getSource, getVersion, inform
 
Methods inherited from class org.apache.solr.handler.component.QueryComponent
distributedProcess, doFieldSortValues, doPrefetch, finishStage, getDocs, handleResponses
 
Methods inherited from class org.apache.solr.handler.component.SearchComponent
getCategory, getName, getStatistics, init, modifyRequest, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AppServerComponent

public AppServerComponent()
Method Detail

prepare

public void prepare(org.apache.solr.handler.component.ResponseBuilder rb)
             throws IOException
Overrides:
prepare in class XQueryComponent
Throws:
IOException

process

public void process(org.apache.solr.handler.component.ResponseBuilder rb)
             throws IOException
ignores start and len query parameters

Overrides:
process in class XQueryComponent
Throws:
IOException


Copyright © 2013. All Rights Reserved.