public class LicasDocSearch extends ServiceAdmin implements LicasDocSearchDef
| Modifier and Type | Field and Description |
|---|---|
protected PasswordHandler |
passwordHandler
The password handler
|
protected java.util.ArrayList<java.lang.String> |
queryIDs
List of IDs for queries currently being executed
|
protected ServiceSpec |
serviceSpec
Initialisation service specification
|
adminInfo, contractManager, keywordHandler, service, serviceAdminKey, services, serviceTypes, workInfo| Constructor and Description |
|---|
LicasDocSearch(Service theParent,
PasswordHandler thePasswordHandler)
Create a new instance of LicasDocSearch.
|
| Modifier and Type | Method and Description |
|---|---|
org.licas_xml.abs.Element |
docSearch(java.lang.String queryEngine,
int callTimeout,
org.licas_xml.abs.Element request,
ServiceLinks serverLinks)
Query the server to parse documents to find matching information.
|
java.util.ArrayList<java.lang.String> |
readUrlDocs(java.util.ArrayList<java.lang.String> fileList)
Read a list of text documents from files or URLs and return the parsed text.
|
clearInstanceValues, createFullServiceMeta, createMetaForRepos, createServiceMeta, getAdminInfo, getContractManager, getInstanceValues, getKeywordHandler, getService, getService, getServiceClasses, getServiceNames, getServiceNames, getServiceNames, getServiceOrWrapper, getServiceType, getServiceTypes, removeAllServices, removeAllServices, removeService, removeService, setAdminInfo, setWorkInfoprotected java.util.ArrayList<java.lang.String> queryIDs
protected PasswordHandler passwordHandler
protected ServiceSpec serviceSpec
public LicasDocSearch(Service theParent, PasswordHandler thePasswordHandler) throws java.lang.Exception
theParent - the parent service.thePasswordHandler - the parent password handler.java.lang.Exception - any error.public org.licas_xml.abs.Element docSearch(java.lang.String queryEngine,
int callTimeout,
org.licas_xml.abs.Element request,
ServiceLinks serverLinks)
throws java.lang.Exception
request element should
have the tag name of QueryConst.QUERYMODEL, or 'Query_Model'. This
should then contain a description of the query request. For this default model, the
XML request that is passed in needs to be parsed by a QueryParser parser
into a QueryModel object, of the 'licas_text' package. This is what the
default classes will then evaluate. The documentation describes the different
fields in more detail.docSearch in interface LicasDocSearchDefqueryEngine - the query engine type.callTimeout - maximum time allowed for the call (in milliseconds).request - the query request in XML format.serverLinks - the ESB links information.java.lang.Exception - any error.public java.util.ArrayList<java.lang.String> readUrlDocs(java.util.ArrayList<java.lang.String> fileList)
throws java.lang.Exception
fileList - list of file paths or URLs to read the document from.java.lang.Exception - any error.