All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class websphinx.searchengine.SearchEngineResult

java.lang.Object
   |
   +----websphinx.Region
           |
           +----websphinx.searchengine.SearchEngineResult

public class SearchEngineResult
extends Region
Result returned by a search engine query, identifying a Web page that matches the query.


Variable Index

 o description
Short description of page as reported by search engine.
 o link
Link to the actual page.
 o rank
Relevancy rank of page in search engine's ordering.
 o score
Relevancy score of page, by search engine's scale.
 o searchengine
Search engine that produced this hit.
 o title
Title of page as reported by search engine, or null if not provided

Constructor Index

 o SearchEngineResult(Region)
Make a SearchEngineResult.

Method Index

 o toString()
Gets region as raw content.

Variables

 o rank
 public int rank
Relevancy rank of page in search engine's ordering. In other words, rank=1 is the first result the search engine returned. If search engine results are not explicitly numbered, then rank may be 0.

 o score
 public double score
Relevancy score of page, by search engine's scale. If search engine does not provide a score, the score defaults to 0.0.

 o title
 public String title
Title of page as reported by search engine, or null if not provided

 o description
 public String description
Short description of page as reported by search engine. Typically the first few words of the page. If not provided, description is null.

 o link
 public Link link
Link to the actual page.

 o searchengine
 public SearchEngine searchengine
Search engine that produced this hit.

Constructors

 o SearchEngineResult
 public SearchEngineResult(Region result)
Make a SearchEngineResult.

Parameters:
result - Region of a search engine's results page. Should be annotated with rank, title, description, and link fields.

Methods

 o toString
 public String toString()
Gets region as raw content.

Overrides:
toString in class Region

All Packages  Class Hierarchy  This Package  Previous  Next  Index