All Packages Class Hierarchy This Package Previous Next Index
Class websphinx.searchengine.AltaVista
java.lang.Object
|
+----websphinx.searchengine.AltaVista
- public class AltaVista
- extends Object
- implements SearchEngine
AltaVista search engine.
-
priority
- Priority of this classifier.
-
AltaVista()
-
-
classify(Page)
- Classify a page.
-
getPriority()
- Get priority of this classifier.
-
getResultsPerPage()
- Get number of results per page for this search engine.
-
makeQuery(String)
- Make a query URL for AltaVista.
-
search(String)
- Search AltaVista.
-
search(String, int)
- Search AltaVista.
priority
public static final float priority
- Priority of this classifier.
AltaVista
public AltaVista()
classify
public void classify(Page page)
- Classify a page. Sets the following labels:
| Name | Type | Meaning
|
|---|
| searchengine.source | Page label | AltaVista object that labeled the 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()
- Get priority of this classifier.
- Returns:
- priority.
makeQuery
public URL makeQuery(String keywords)
- Make a query URL for AltaVista.
- Parameters:
- keywords - list of keywords, separated by spaces
- Returns:
- URL that submits the keywords to AltaVista.
getResultsPerPage
public int getResultsPerPage()
- Get number of results per page for this search engine.
- Returns:
- typical number of results per page
search
public static Search search(String keywords)
- Search AltaVista.
- Parameters:
- keywords - list of keywords, separated by spaces
- Returns:
- enumeration of SearchEngineResults returned by an AltaVista query constructed from the keywords.
search
public static Search search(String keywords,
int maxResults)
- Search AltaVista.
- Parameters:
- keywords - list of keywords, separated by spaces
- maxResults - maximum number of results to return
- Returns:
- enumeration of SearchEngineResults returned by an AltaVista query constructed from the keywords.
The enumeration yields at most maxResults objects.
All Packages Class Hierarchy This Package Previous Next Index