.oO SearXNG Developer Documentation Oo.
Loading...
Searching...
No Matches
searx.result_types.answer.Answer Class Reference
Inheritance diagram for searx.result_types.answer.Answer:
Collaboration diagram for searx.result_types.answer.Answer:

Public Member Functions

 __hash__ (self)
Public Member Functions inherited from searx.result_types._base.Result
 normalize_result_fields (self)
 __post_init__ (self)
 filter_urls (self, Callable[[Result|LegacyResult, str, str], str|bool] filter_func)
int __hash__ (self)
 __eq__ (self, other)
 __setitem__ (self, field_name, value)
 __getitem__ (self, field_name)
 __iter__ (self)
 as_dict (self)
 defaults_from (self, Result other)

Public Attributes

 answer

Additional Inherited Members

Static Public Attributes inherited from searx.result_types._base.Result
str url = None
str template = "default.html"
str engine = ""
urllib parsed_url = None

Detailed Description

Simple answer type where the *answer* is a simple string with an optional
:py:obj:`url field <Result.url>` field to link a resource (article, map, ..)
related to the answer.

Definition at line 79 of file answer.py.

Member Function Documentation

◆ __hash__()

searx.result_types.answer.Answer.__hash__ ( self)
The hash value of field *answer* is the hash value of the
:py:obj:`Answer` object.  :py:obj:`Answer <Result.__eq__>` objects are
equal, when the hash values of both objects are equal.

Definition at line 89 of file answer.py.

89 def __hash__(self):
90 """The hash value of field *answer* is the hash value of the
91 :py:obj:`Answer` object. :py:obj:`Answer <Result.__eq__>` objects are
92 equal, when the hash values of both objects are equal."""
93 return hash(self.answer)
94
95

Member Data Documentation

◆ answer

searx.result_types.answer.Answer.answer

Definition at line 93 of file answer.py.


The documentation for this class was generated from the following file:
  • /home/andrew/Documents/code/public/searxng/searx/result_types/answer.py