lux.solr
Class XQueryComponent

java.lang.Object
  extended by org.apache.solr.handler.component.SearchComponent
      extended by org.apache.solr.handler.component.QueryComponent
          extended by 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 Class Summary
 
Nested classes/interfaces inherited from interface org.apache.solr.core.SolrInfoMBean
org.apache.solr.core.SolrInfoMBean.Category
 
Field Summary
protected  Set<String> fields
           
static String LUX_PATH_INFO
           
static String LUX_XQUERY
           
protected  String queryPath
           
protected  SolrIndexConfig solrIndexConfig
           
static String XQUERY_COMPONENT_NAME
           
 
Fields inherited from class org.apache.solr.handler.component.QueryComponent
COMPONENT_NAME
 
Constructor Summary
XQueryComponent()
           
 
Method Summary
protected  void addResult(org.apache.solr.common.util.NamedList<Object> xpathResults, net.sf.saxon.s9api.XdmItem item)
           
protected  void evaluateQuery(org.apache.solr.handler.component.ResponseBuilder rb, int start, int len)
           
 String getDescription()
           
 SolrIndexConfig getSolrIndexConfig()
           
 String getSource()
           
 String getVersion()
           
 void inform(org.apache.solr.core.SolrCore core)
           
 void prepare(org.apache.solr.handler.component.ResponseBuilder rb)
           
 void process(org.apache.solr.handler.component.ResponseBuilder rb)
           
 
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
 

Field Detail

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
Constructor Detail

XQueryComponent

public XQueryComponent()
Method Detail

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.