| java.lang.Object websphinx.Region websphinx.searchengine.SearchEngineResult
SearchEngineResult | public class SearchEngineResult extends Region (Code) | | Result returned by a search engine query, identifying a Web page that matches the query.
|
Field Summary | |
public String | description Short description of page as reported by search engine. | public Link | link Link to the actual page. | public int | rank Relevancy rank of page in search engine's ordering. | public double | score Relevancy score of page, by search engine's scale. | public SearchEngine | searchengine Search engine that produced this hit. | public String | title |
Constructor Summary | |
public | SearchEngineResult(Region result) Make a SearchEngineResult.
Parameters: result - Region of a search engine's results page. |
description | public String description(Code) | | 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(Code) | | Link to the actual page.
|
rank | public int rank(Code) | | 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(Code) | | 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(Code) | | Title of page as reported by search engine, or null if not provided
|
SearchEngineResult | public SearchEngineResult(Region result)(Code) | | Make a SearchEngineResult.
Parameters: result - Region of a search engine's results page. Should be annotated with rank, title,description, and link fields. |
|
|