org.carrot2.source.boss
Class BossNewsSearchService

java.lang.Object
  extended by org.carrot2.source.boss.BossSearchService
      extended by org.carrot2.source.boss.BossNewsSearchService

public final class BossNewsSearchService
extends BossSearchService

Sends queries to Yahoo! Boss News search service. Instances of this class are thread-safe.

Attributes of this class correspond to Yahoo's documentation (see links below).

See Also:
API description, Yahoo Boss Documentation
Attribute label:
Yahoo Boss News Search Service

Field Summary
 int age
          Maximum age of returned news in days.
 String serviceURI
          Boss News search service URI.
 
Fields inherited from class org.carrot2.source.boss.BossSearchService
appid, CARROTSEARCH_APPID, languageAndRegion, logger, metadata, sites, YBOSS_RESPONSE
 
Constructor Summary
BossNewsSearchService()
           
 
Method Summary
protected  ArrayList<org.apache.commons.httpclient.NameValuePair> createRequestParams(String query, int start, int results)
          Assembles an array of NameValuePair with request parameters.
protected  String getServiceURI()
           
 
Methods inherited from class org.carrot2.source.boss.BossSearchService
query
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serviceURI

public String serviceURI
Boss News search service URI.

Attribute label:
Service URI
Attribute level:
Advanced
Attribute group:
Service

age

public int age
Maximum age of returned news in days. The index stories for 30 days.

Attribute label:
Age
Attribute level:
Medium
Attribute group:
Results filtering
Constructor Detail

BossNewsSearchService

public BossNewsSearchService()
Method Detail

createRequestParams

protected ArrayList<org.apache.commons.httpclient.NameValuePair> createRequestParams(String query,
                                                                                     int start,
                                                                                     int results)
Assembles an array of NameValuePair with request parameters.

Specified by:
createRequestParams in class BossSearchService

getServiceURI

protected String getServiceURI()
Specified by:
getServiceURI in class BossSearchService
Returns:
Return service URI for this service.


Copyright (c) Dawid Weiss, Stanislaw Osinski