lux.solr
Class AppServerComponent
java.lang.Object
org.apache.solr.handler.component.SearchComponent
org.apache.solr.handler.component.QueryComponent
lux.solr.XQueryComponent
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 classes/interfaces inherited from interface org.apache.solr.core.SolrInfoMBean |
org.apache.solr.core.SolrInfoMBean.Category |
| Fields inherited from class org.apache.solr.handler.component.QueryComponent |
COMPONENT_NAME |
|
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 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 |
AppServerComponent
public AppServerComponent()
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.