|
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.google.GoogleDesktopDocumentSource
public class GoogleDesktopDocumentSource
Fetches documents from an instance of Google Desktop search engine.
| Field Summary | |
|---|---|
boolean |
keepHighlights
Keep query word highlighting. |
String |
queryUrl
Query URL. |
| Fields inherited from class org.carrot2.source.SearchEngineBase |
|---|
compressed, documents, query, results, resultsTotal, start, statistics |
| Constructor Summary | |
|---|---|
GoogleDesktopDocumentSource()
|
|
| 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 SearchEngineResponse |
fetchSearchResponse()
Requests and returns results from the underlying search engine. |
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, 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 queryUrl
HKEY_CURRENT_USER\Software\Google\Google Desktop\API\search_url system
registry key and Carrot2 will attempt to automatically read the value from the
registry when run with Administrator provileges. Please consult Google
Desktop API documentation for further instructions on how to determine the
query URL on other systems.
public boolean keepHighlights
true to keep these
highlights.
| Constructor Detail |
|---|
public GoogleDesktopDocumentSource()
| Method Detail |
|---|
protected SearchEngineResponse fetchSearchResponse()
throws Exception
SimpleSearchEngine
fetchSearchResponse in class RemoteXmlSimpleSearchEngineBaseException - in case of problems with the underlying search engineprotected String buildServiceUrl()
RemoteXmlSimpleSearchEngineBase
buildServiceUrl in class RemoteXmlSimpleSearchEngineBaseprotected IResource getXsltResource()
RemoteXmlSimpleSearchEngineBase
getXsltResource 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 | ||||||||