lux.solr
Class XQueryComponent
java.lang.Object
org.apache.solr.handler.component.SearchComponent
org.apache.solr.handler.component.QueryComponent
lux.solr.XQueryComponent
- All Implemented Interfaces:
- org.apache.solr.core.SolrInfoMBean, org.apache.solr.util.plugin.NamedListInitializedPlugin, org.apache.solr.util.plugin.SolrCoreAware
- Direct Known Subclasses:
- AppServerComponent
public class XQueryComponent
- extends org.apache.solr.handler.component.QueryComponent
- implements org.apache.solr.util.plugin.SolrCoreAware
This component executes searches expressed as XPath or XQuery.
Its queries will match documents that have been indexed using XmlIndexer
with the INDEX_PATHS option.
| 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 |
| 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 |
LUX_XQUERY
public static final String LUX_XQUERY
- See Also:
- Constant Field Values
LUX_PATH_INFO
public static final String LUX_PATH_INFO
- See Also:
- Constant Field Values
fields
protected Set<String> fields
solrIndexConfig
protected SolrIndexConfig solrIndexConfig
queryPath
protected String queryPath
XQUERY_COMPONENT_NAME
public static final String XQUERY_COMPONENT_NAME
- See Also:
- Constant Field Values
XQueryComponent
public XQueryComponent()
getSolrIndexConfig
public SolrIndexConfig getSolrIndexConfig()
inform
public void inform(org.apache.solr.core.SolrCore core)
- Specified by:
inform in interface org.apache.solr.util.plugin.SolrCoreAware
prepare
public void prepare(org.apache.solr.handler.component.ResponseBuilder rb)
throws IOException
- Overrides:
prepare in class org.apache.solr.handler.component.QueryComponent
- Throws:
IOException
process
public void process(org.apache.solr.handler.component.ResponseBuilder rb)
throws IOException
- Overrides:
process in class org.apache.solr.handler.component.QueryComponent
- Throws:
IOException
evaluateQuery
protected void evaluateQuery(org.apache.solr.handler.component.ResponseBuilder rb,
int start,
int len)
addResult
protected void addResult(org.apache.solr.common.util.NamedList<Object> xpathResults,
net.sf.saxon.s9api.XdmItem item)
throws net.sf.saxon.s9api.SaxonApiException
- Throws:
net.sf.saxon.s9api.SaxonApiException
getDescription
public String getDescription()
- Specified by:
getDescription in interface org.apache.solr.core.SolrInfoMBean- Overrides:
getDescription in class org.apache.solr.handler.component.QueryComponent
getSource
public String getSource()
- Specified by:
getSource in interface org.apache.solr.core.SolrInfoMBean- Overrides:
getSource in class org.apache.solr.handler.component.QueryComponent
getVersion
public String getVersion()
- Specified by:
getVersion in interface org.apache.solr.core.SolrInfoMBean- Overrides:
getVersion in class org.apache.solr.handler.component.SearchComponent
Copyright © 2013. All Rights Reserved.