public interface SearchService
Record
object. There are two alternatives for processing a search:
Methods having a 'workflow' parameter use a BPEL workflow for processing the search.
Methods having a 'script' parameter (search...WithScript) use the Scripting engine for processing the search.
For the structure of the query record see the Search API specification page in the Eclipse Wiki:
http://wiki.eclipse.org/SMILA/Specifications/Search_API.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
NAMESPACE_SEARCH
namespace of search specific elements in XML result.
|
static java.lang.String |
TAG_DETAILS
local name of XML result's error details element.
|
static java.lang.String |
TAG_ERROR
local name of XML result's error root element.
|
static java.lang.String |
TAG_MESSAGE
local name of XML result's error message element.
|
static java.lang.String |
TAG_SCRIPT_NAME
local name of XML result's element containing the script name.
|
static java.lang.String |
TAG_SEARCHRESULT
local name of XML result's root element.
|
static java.lang.String |
TAG_WORKFLOWNAME
local name of XML result's element containing the pipeline name.
|
| Modifier and Type | Method and Description |
|---|---|
Record |
search(java.lang.String workflowName,
Record query)
Execute a query using the named workflow and create a SearchResult from the workflow result.
|
org.w3c.dom.Document |
searchAsXml(java.lang.String workflowName,
Record query)
Execute a query using the named workflow and return the search result as an XML document.
|
java.lang.String |
searchAsXmlString(java.lang.String workflowName,
Record query)
Execute a query using the named workflow and return the search result as an XML string.
|
java.lang.String |
searchAsXmlStringWithScript(java.lang.String script,
Record query)
Execute a query using the named script and return the search result as an XML string.
|
org.w3c.dom.Document |
searchAsXmlWithScript(java.lang.String script,
Record query)
Execute a query using the named script and return the search result as an XML document.
|
Record |
searchWithScript(java.lang.String script,
Record query)
Execute a query using the named script and create a SearchResult from the script result.
|
static final java.lang.String NAMESPACE_SEARCH
static final java.lang.String TAG_SEARCHRESULT
static final java.lang.String TAG_WORKFLOWNAME
static final java.lang.String TAG_SCRIPT_NAME
static final java.lang.String TAG_ERROR
static final java.lang.String TAG_MESSAGE
static final java.lang.String TAG_DETAILS
Record search(java.lang.String workflowName, Record query) throws ProcessingException
workflowName - name of workflow to process the search.query - query object describing the search.ProcessingException - error while processing the request or preparing the input message or search result.org.w3c.dom.Document searchAsXml(java.lang.String workflowName,
Record query)
throws javax.xml.parsers.ParserConfigurationException
workflowName - name of workflow to process the search.query - query object describing the search.javax.xml.parsers.ParserConfigurationException - error creating the XML result.java.lang.String searchAsXmlString(java.lang.String workflowName,
Record query)
throws javax.xml.parsers.ParserConfigurationException
workflowName - name of workflow to process the search.query - query object describing the search.javax.xml.parsers.ParserConfigurationException - error creating the XML result.Record searchWithScript(java.lang.String script, Record query) throws ProcessingException
script - name of the script function to process the search (e.g. search.process)query - query object describing the search.ProcessingException - error while processing the request or preparing the input message or search result.org.w3c.dom.Document searchAsXmlWithScript(java.lang.String script,
Record query)
throws javax.xml.parsers.ParserConfigurationException
script - name of the script function to process the search (e.g. search.process)query - query object describing the search.javax.xml.parsers.ParserConfigurationException - error creating the XML result.java.lang.String searchAsXmlStringWithScript(java.lang.String script,
Record query)
throws javax.xml.parsers.ParserConfigurationException
script - name of the script function to process the search (e.g. search.process)query - query object describing the search.javax.xml.parsers.ParserConfigurationException - error creating the XML result.