org.carrot2.source.microsoft
Class Bing2NewsDocumentSource
java.lang.Object
org.carrot2.core.ProcessingComponentBase
org.carrot2.source.SearchEngineBase
org.carrot2.source.MultipageSearchEngine
org.carrot2.source.microsoft.Bing2DocumentSource
org.carrot2.source.microsoft.Bing2NewsDocumentSource
- All Implemented Interfaces:
- IDocumentSource, IProcessingComponent
public class Bing2NewsDocumentSource
- extends Bing2DocumentSource
News search specific document source fetching from Bing using Bing2 API.
|
Method Summary |
protected void |
appendSourceParams(ArrayList<org.apache.http.NameValuePair> params)
Append any source-specific parameters. |
void |
process()
Process the query. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
sortOrder
public SortOrder sortOrder
- Specifies the sort order of results.
- Attribute label:
- Sort order
- Attribute level:
- Medium
- Attribute group:
- Results filtering
Bing2NewsDocumentSource
public Bing2NewsDocumentSource()
- Initialize source type properly.
process
public void process()
throws ProcessingException
- Process the query.
- Specified by:
process in interface IProcessingComponent- Specified by:
process in class Bing2DocumentSource
- Throws:
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.
appendSourceParams
protected void appendSourceParams(ArrayList<org.apache.http.NameValuePair> params)
- Description copied from class:
Bing2DocumentSource
- Append any source-specific parameters.
- Overrides:
appendSourceParams in class Bing2DocumentSource
Copyright (c) Dawid Weiss, Stanislaw Osinski