All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class websphinx.searchengine.HotBot

java.lang.Object
   |
   +----websphinx.searchengine.HotBot

public class HotBot
extends Object
implements SearchEngine
HotBot search engine.


Variable Index

 o priority
Priority of this classifier.

Constructor Index

 o HotBot()

Method Index

 o classify(Page)
Classify a page.
 o getPriority()
Get priority of this classifier.
 o getResultsPerPage()
Get number of results per page for this search engine.
 o makeQuery(String)
Make a query URL for HotBot.
 o search(String)
Search HotBot.
 o search(String, int)
Search HotBot.

Variables

 o priority
 public static final float priority
Priority of this classifier.

Constructors

 o HotBot
 public HotBot()

Methods

 o classify
 public void classify(Page page)
Classify a page. Sets the following labels:
Name Type Meaning
searchengine.source Page label HotBot 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.

 o getPriority
 public float getPriority()
Get priority of this classifier.

Returns:
priority.
 o makeQuery
 public URL makeQuery(String keywords)
Make a query URL for HotBot.

Parameters:
keywords - list of keywords, separated by spaces
Returns:
URL that submits the keywords to HotBot.
 o getResultsPerPage
 public int getResultsPerPage()
Get number of results per page for this search engine.

Returns:
typical number of results per page
 o search
 public static Search search(String keywords)
Search HotBot.

Parameters:
keywords - list of keywords, separated by spaces
Returns:
enumeration of SearchEngineResults returned by a HotBot query constructed from the keywords.
 o search
 public static Search search(String keywords,
                             int maxResults)
Search HotBot.

Parameters:
keywords - list of keywords, separated by spaces
maxResults - maximum number of results to return
Returns:
enumeration of SearchEngineResults returned by an HotBot query constructed from the keywords. The enumeration yields at most maxResults objects.

All Packages  Class Hierarchy  This Package  Previous  Next  Index