class documentation
class SearchResult(object):
Constructor: SearchResult(result_number, likelihood, full_url, title, excerpt)
A single result of a search.
Most searches, unless they couldn't find anything, will return multiple of these as part of a SearchResultSet.
| Method | __init__ |
The default constructor. |
| Instance Variable | excerpt |
a short excerpt/summary, provided it is available |
| Instance Variable | full |
the full url of the entry this result is for |
| Instance Variable | likelihood |
a 0-1 value describing the match rate |
| Instance Variable | result |
1-based index of this result in the result set |
| Instance Variable | title |
title of the entry this result is for |
The default constructor.
| Parameters | |
resultint | 1-based index of this result in the result set |
likelihood:float | a 0-1 value describing the match rate |
fullstr | the full url of the entry this result is for |
title:str | title of the entry this result is for |
excerpt:str or None | a short excerpt/summary, provided it is available |