@Bindable(prefix="EToolsDocumentSource") public class EToolsDocumentSource extends RemoteXmlSimpleSearchEngineBase
contact@comcepta.com.| Modifier and Type | Class and Description |
|---|---|
static class |
EToolsDocumentSource.Country
Enumeration for countries supported by
EToolsDocumentSource, see
country. |
static class |
EToolsDocumentSource.DataSources
Enumeration for the data sources modes supported by
EToolsDocumentSource,
see dataSources. |
static class |
EToolsDocumentSource.Language
Enumeration for languages supported by
EToolsDocumentSource, see
language. |
| Modifier and Type | Field and Description |
|---|---|
EToolsDocumentSource.Country |
country
Determines the country of origin for the returned search results.
|
EToolsDocumentSource.DataSources |
dataSources
Determines which data sources to search.
|
EToolsDocumentSource.Language |
language
Determines the language of the returned search results.
|
String |
partnerId
eTools partner identifier.
|
boolean |
safeSearch
If enabled, excludes offensive content from the results.
|
String |
serviceUrlBase
Base URL for the eTools service
|
int |
timeout
Maximum time in milliseconds to wait for all data sources to return results.
|
compressed, documents, POSTPROCESSING, query, results, resultsTotal, SERVICE, start, statistics| Constructor and Description |
|---|
EToolsDocumentSource() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
afterFetch(SearchEngineResponse response)
Called after a single search engine response has been fetched.
|
protected String |
buildServiceUrl()
Builds the URL from which XML stream will be fetched.
|
protected IResource |
getXsltResource()
Returns the XSLT stylesheet that transforms the custom XML into Carrot2 compliant
XML.
|
beforeProcessing, fetchSearchResponse, getPassword, getUser, getXsltParameters, initprocessclean, urlEncodeafterProcessing, dispose, getContext, getSharedExecutorclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitafterProcessing, dispose@Input @Processing @Internal @Attribute @Label(value="Service URL") @Level(value=ADVANCED) @Group(value="Service") public String serviceUrlBase
@Input @Processing @Attribute @Label(value="Country") @Level(value=MEDIUM) @Group(value="Filtering") public EToolsDocumentSource.Country country
@Input @Processing @Attribute @Label(value="Language") @Level(value=MEDIUM) @Group(value="Filtering") public EToolsDocumentSource.Language language
@Input @Processing @Attribute @IntRange(min=0) @Label(value="Timeout") @Level(value=ADVANCED) @Group(value="Service") public int timeout
@Input @Processing @Attribute @Label(value="Data sources") @Level(value=ADVANCED) @Group(value="Service") public EToolsDocumentSource.DataSources dataSources
@Input @Processing @Attribute @Label(value="Safe search") @Level(value=BASIC) @Group(value="Filtering") public boolean safeSearch
@Input @Processing @Attribute @Internal @Label(value="Partner ID") @Level(value=ADVANCED) @Group(value="Service") public String partnerId
protected IResource getXsltResource()
RemoteXmlSimpleSearchEngineBasegetXsltResource in class RemoteXmlSimpleSearchEngineBaseprotected String buildServiceUrl()
RemoteXmlSimpleSearchEngineBasebuildServiceUrl in class RemoteXmlSimpleSearchEngineBaseprotected void afterFetch(SearchEngineResponse response)
SearchEngineBaseafterFetch in class SearchEngineBase