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

Classes

class  types

Public Member Functions

 __init__ (self)
 add (self, Result|LegacyResult result)
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, object other)
 __setitem__ (self, str field_name, t.Any value)
t.Any __getitem__ (self, str field_name)
 __iter__ (self)
 as_dict (self)
 defaults_from (self, "Result" other)
Public Member Functions inherited from searx.result_types._base.LegacyResult
 as_dict (self)
 __init__ (self, *t.Any args, **t.Any kwargs)
t.Any __getattr__ (self, str name, t.Any default=UNSET)
 __setattr__ (self, str name, t.Any val)
int __hash__ (self)
 __eq__ (self, object other)
str __repr__ (self)
 normalize_result_fields (self)
 defaults_from (self, "LegacyResult" other)
 filter_urls (self, "Callable[[Result | LegacyResult, str, str], str | bool]" filter_func)

Additional Inherited Members

Public Attributes inherited from searx.result_types._base.LegacyResult
str template = "answer/legacy.html"
 engine
Static Public Attributes inherited from searx.result_types._base.Result
str url = None
str template = "default.html"
str engine = ""
urllib parsed_url = None
Static Public Attributes inherited from searx.result_types._base.LegacyResult
object UNSET = object()
str url | None
urllib parsed_url .parse.ParseResult | None
priority .Literal["", "high", "low"]
set engines [str]
list positions [int]
datetime publishedDate .datetime | None
str pubdate = ""
list urls [dict[str, str]]
list attributes [dict[str, str]]

Detailed Description

Base class of all result lists (abstract).

Definition at line 36 of file __init__.py.

Constructor & Destructor Documentation

◆ __init__()

searx.result_types.ResultList.__init__ ( self)

Definition at line 55 of file __init__.py.

55 def __init__(self):
56 # pylint: disable=useless-parent-delegation
57 super().__init__()
58

References __init__().

Referenced by __init__().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Function Documentation

◆ add()

searx.result_types.ResultList.add ( self,
Result | LegacyResult result )
Add a :py:`Result` item to the result list.

Definition at line 59 of file __init__.py.

59 def add(self, result: Result | LegacyResult):
60 """Add a :py:`Result` item to the result list."""
61 self.append(result)
62
63

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