class documentation
class SearchResultSet(object):
Constructor: SearchResultSet(search, term, n_estimated)
A SearchResultSet contains the SearchResults of a search as well as some result metadata like the amount of matches.
The main purpose of this class is to provide an efficient search that may automatically fetch more results.
| Method | __init__ |
The default constructor. |
| Method | __iter__ |
Iterate over the search results in this set. |
| Method | __len__ |
Return an estimated amount of results. |
| Method | iter |
Iterate over the search results in this set. |
| Instance Variable | n |
estimated number of results if available |
| Instance Variable | search |
the search object that produced this search result |
| Instance Variable | term |
the used search term |
The default constructor.
| Parameters | |
search:BaseSearch | the search object that produced this search result |
term:str | the used search term |
nint or None | estimated number of results if available |
Iterate over the search results in this set.
| Returns | |
SearchResult | an interator/generator yielding the search results |
Iterate over the search results in this set.
| Parameters | |
start:int | start (1-based index) of the results to find |
n:int | number of results to fetch |
| Returns | |
SearchResult | an interator/generator yielding the search results |