| java.lang.Object websphinx.searchengine.NewsBot
priority | final public static float priority(Code) | | Priority of this classifier.
|
classify | public void classify(Page page)(Code) | | Classify a page. Sets the following labels:
Name | Type | Meaning
|
---|
searchengine.source | Page label | NewsBot object that labeled this page
| searchengine.count | Page field | Number of results on page
| searchengine.results | Page fields | Array of results. Each result region
contains subfields: rank, title, description, and link.
| searchengine.more-results | Link label | Link to a page containing more results.
|
|
getPriority | public float getPriority()(Code) | | Get priority of this classifier.
priority. |
getResultsPerPage | public int getResultsPerPage()(Code) | | Get number of results per page for this search engine.
typical number of results per page |
makeQuery | public URL makeQuery(String keywords)(Code) | | Make a query URL for NewsBot.
Parameters: keywords - list of keywords, separated by spaces URL that submits the keywords to NewsBot. |
search | public static Search search(String keywords)(Code) | | Search NewsBot.
Parameters: keywords - list of keywords, separated by spaces enumeration of SearchEngineResults returned by a NewsBot query constructed from the keywords. |
search | public static Search search(String keywords, int maxResults)(Code) | | Search NewsBot.
Parameters: keywords - list of keywords, separated by spaces Parameters: maxResults - maximum number of results to return enumeration of SearchEngineResults returned by an NewsBot query constructed from the keywords.The enumeration yields at most maxResults objects. |
|
|