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.
-
description
- Short description of page as reported by search engine.
-
link
- Link to the actual page.
-
rank
- Relevancy rank of page in search engine's ordering.
-
score
- Relevancy score of page, by search engine's scale.
-
searchengine
- Search engine that produced this hit.
-
title
- Title of page as reported by search engine, or null if not provided
-
SearchEngineResult(Region)
- Make a SearchEngineResult.
-
toString()
- Gets region as raw content.
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.
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.
title
public String title
- Title of page as reported by search engine, or null if not provided
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.
link
public Link link
- Link to the actual page.
searchengine
public SearchEngine searchengine
- Search engine that produced this hit.
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.
toString
public String toString()
- Gets region as raw content.
- Overrides:
- toString in class Region
All Packages Class Hierarchy This Package Previous Next Index