@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.
|Constructor and Description|
|Modifier and Type||Method and Description|
Requests and returns results from the underlying search engine.
Performs the processing required to fulfill the request.
afterProcessing, beforeProcessing, dispose, getContext, getSharedExecutor, init
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
protected abstract SearchEngineResponse fetchSearchResponse() throws Exception
Exception- in case of problems with the underlying search engine
public void process() throws ProcessingException
ProcessingException- 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.