Class h.l.HHit(HDocument):
Part of hypy.libView In Hierarchy
A hit returned by a search.
| Method | emphasize_html | Write emphasized text in html |
| Method | emphasize_rst | Write emphasized text in restructuredtext |
| Method | teaser | Produce the teaser/snippet text for the hit |
Inherited from HDocument:
| Method | __str__ | Undocumented |
| Method | __init__ | Undocumented |
| Method | addHiddenText | Add text that will affect search scoring but will NOT appear in the |
| Method | addText | Put some text into the document |
| Class Method | fromCDocument | Construct a document from an existing estraiernative.Document, such as |
| Method | __delitem__ | Undocumented |
| Method | __setitem__ | Undocumented |
| Method | __getitem__ | Undocumented |
| Method | update | Update attributes of this document from another one |
| Method | get | Return doc[key] unless key is not found, in which case return the |
| Method | keys | Names of all attributes set on this document |
| Method | values | Values of all attributes set on this document |
| Method | items | (attribute_name, attribute_value) 2-tuples for every attribute in this |
| Method | getTexts | Return all (visible) texts in this document, as a list |
| Method | encode | Return an encoded version of this document. Convenience method |
| Method | _get_text | Undocumented |
| Method | _get_id | Undocumented |