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

Additional Inherited Members

- Public Member Functions inherited from searx.result_types.ResultList
 __init__ (self)
 
 add (self, Result|LegacyResult result)
 

Detailed Description

Result list that should be used by engine developers.  For convenience,
engine developers don't need to import types / see :py:obj:`ResultList.types`.

.. code:: python

   from searx.result_types import EngineResults
   ...
   def response(resp) -> EngineResults:
       res = EngineResults()
       ...
       res.add( res.types.Answer(answer="lorem ipsum ..", url="https://example.org") )
       ...
       return res

Definition at line 51 of file __init__.py.


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