@Bindable public abstract class SimpleSearchEngine extends SearchEngineBase
IDocumentSources wrapping external
search engines with remote/ network-based interfaces. This implementation assumes that
all requested results can be fetched from the search engine using one request.MultipageSearchEnginecompressed, documents, POSTPROCESSING, query, results, resultsTotal, SERVICE, start, statistics| Constructor and Description |
|---|
SimpleSearchEngine() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract SearchEngineResponse |
fetchSearchResponse()
Requests and returns results from the underlying search engine.
|
void |
process()
Performs the processing required to fulfill the request.
|
afterFetch, clean, urlEncodeafterProcessing, beforeProcessing, dispose, getContext, getSharedExecutor, initclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitafterProcessing, beforeProcessing, dispose, initprotected abstract SearchEngineResponse fetchSearchResponse() throws Exception
Exception - in case of problems with the underlying search enginepublic void process()
throws ProcessingException
IProcessingComponentprocess 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.