|
Carrot2 v3.3.0
API Documentation |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.carrot2.core.ProcessingComponentBase
org.carrot2.source.SearchEngineBase
org.carrot2.source.SimpleSearchEngine
org.carrot2.source.xml.RemoteXmlSimpleSearchEngineBase
org.carrot2.source.etools.EToolsDocumentSource
public class EToolsDocumentSource
A Carrot2 input component for the eTools service (http://www.etools.ch). For commercial
licensing of the eTools feed, please e-mail: contact@comcepta.com.
| Nested Class Summary | |
|---|---|
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. |
| Field Summary | |
|---|---|
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. |
| Fields inherited from class org.carrot2.source.SearchEngineBase |
|---|
compressed, documents, query, results, resultsTotal, start, statistics |
| Constructor Summary | |
|---|---|
EToolsDocumentSource()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.carrot2.source.xml.RemoteXmlSimpleSearchEngineBase |
|---|
beforeProcessing, fetchSearchResponse, getPassword, getUser, getXsltParameters, init |
| Methods inherited from class org.carrot2.source.SimpleSearchEngine |
|---|
process |
| Methods inherited from class org.carrot2.source.SearchEngineBase |
|---|
clean, urlEncode |
| Methods inherited from class org.carrot2.core.ProcessingComponentBase |
|---|
afterProcessing, dispose, getContext, getSharedExecutor |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.carrot2.core.IProcessingComponent |
|---|
afterProcessing, dispose |
| Field Detail |
|---|
public String serviceUrlBase
public EToolsDocumentSource.Country country
public EToolsDocumentSource.Language language
public int timeout
public EToolsDocumentSource.DataSources dataSources
public boolean safeSearch
public String partnerId
| Constructor Detail |
|---|
public EToolsDocumentSource()
| Method Detail |
|---|
protected IResource getXsltResource()
RemoteXmlSimpleSearchEngineBase
getXsltResource in class RemoteXmlSimpleSearchEngineBaseprotected String buildServiceUrl()
RemoteXmlSimpleSearchEngineBase
buildServiceUrl in class RemoteXmlSimpleSearchEngineBaseprotected void afterFetch(SearchEngineResponse response)
SearchEngineBase
afterFetch in class SearchEngineBase
|
Please refer to project documentation at
http://project.carrot2.org |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||