.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)
 
int __hash__ (self)
 
 __eq__ (self, other)
 
 __setitem__ (self, field_name, value)
 
 __getitem__ (self, field_name)
 
 __iter__ (self)
 
 as_dict (self)
 

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 73 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 83 of file answer.py.

83 def __hash__(self):
84 """The hash value of field *answer* is the hash value of the
85 :py:obj:`Answer` object. :py:obj:`Answer <Result.__eq__>` objects are
86 equal, when the hash values of both objects are equal."""
87 return hash(self.answer)
88
89

Member Data Documentation

◆ answer

searx.result_types.answer.Answer.answer

Definition at line 87 of file answer.py.


The documentation for this class was generated from the following file: