|
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.MultipageSearchEngine
org.carrot2.source.microsoft.MicrosoftLiveDocumentSource
public final class MicrosoftLiveDocumentSource
A IDocumentSource fetching Documents (search results) from Microsoft
Live!.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.carrot2.source.MultipageSearchEngine |
|---|
MultipageSearchEngine.SearchEngineResponseCallable, MultipageSearchEngine.SearchMode, MultipageSearchEngine.SearchRange |
| Field Summary | |
|---|---|
String |
appid
Microsoft-assigned application ID for querying the API. |
static String |
CARROTSEARCH_APPID
Application ID assigned to Carrot Search s.c. |
CultureInfo |
culture
Culture and language restriction. |
SafeSearch |
safeSearch
Safe search restriction (porn filter). |
| Fields inherited from class org.carrot2.source.MultipageSearchEngine |
|---|
searchMode |
| Fields inherited from class org.carrot2.source.SearchEngineBase |
|---|
compressed, documents, query, results, resultsTotal, start, statistics |
| Constructor Summary | |
|---|---|
MicrosoftLiveDocumentSource()
|
|
| Method Summary | |
|---|---|
protected Callable<SearchEngineResponse> |
createFetcher(MultipageSearchEngine.SearchRange bucket)
Create a single page fetcher for the search range. |
void |
process()
Run a single query. |
| Methods inherited from class org.carrot2.source.MultipageSearchEngine |
|---|
collectDocuments, process, runQuery |
| Methods inherited from class org.carrot2.source.SearchEngineBase |
|---|
afterFetch, clean, urlEncode |
| Methods inherited from class org.carrot2.core.ProcessingComponentBase |
|---|
afterProcessing, beforeProcessing, dispose, getContext, getSharedExecutor, init |
| 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, beforeProcessing, dispose, init |
| Field Detail |
|---|
public static final String CARROTSEARCH_APPID
public String appid
public CultureInfo culture
public SafeSearch safeSearch
| Constructor Detail |
|---|
public MicrosoftLiveDocumentSource()
| Method Detail |
|---|
public void process()
throws ProcessingException
process in interface IProcessingComponentprocess in class ProcessingComponentBaseProcessingException - when processing failed. If thrown, the
IProcessingComponent.afterProcessing() method will be called and the component will
be ready to accept further requests or to be disposed of. Finally, the
exception will be rethrown from the controller method that caused the
component to perform processing.protected final Callable<SearchEngineResponse> createFetcher(MultipageSearchEngine.SearchRange bucket)
createFetcher in class MultipageSearchEnginebucket - The search range to fetch.
|
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 | ||||||||