.oO SearXNG Developer Documentation Oo.
|
Public Member Functions | |
init (self, list[dict[str, t.Any]] engine_list) | |
bool | register_processor (self, EngineProcessor eng_proc, bool eng_proc_ok) |
Public Member Functions inherited from searx.search.processors.abstract.EngineProcessor | |
__init__ (self, "Engine|types.ModuleType" engine) | |
initialize (self, t.Callable[["EngineProcessor", bool], bool] callback) | |
bool | init_engine (self) |
handle_exception (self, "ResultContainer" result_container, BaseException|str exception_or_message, bool suspend=False) | |
extend_container (self, "ResultContainer" result_container, float start_time, "list[Result | LegacyResult]|None" search_results) | |
bool | extend_container_if_suspended (self, "ResultContainer" result_container) |
RequestParams|None | get_params (self, "SearchQuery" search_query, str engine_category) |
search (self, str query, RequestParams params, "ResultContainer" result_container, float start_time, float timeout_limit) | |
get_tests (self) | |
get_default_tests (self) |
Public Attributes | |
register_processor | |
Public Attributes inherited from searx.search.processors.abstract.EngineProcessor | |
engine = engine | |
logging.Logger | logger = engines[engine.name].logger |
SuspendedStatus | suspended_status = SUSPENDED_STATUS.setdefault(key, SuspendedStatus()) |
Static Public Attributes | |
dict | processor_types |
Additional Inherited Members | |
Protected Member Functions inherited from searx.search.processors.abstract.EngineProcessor | |
_extend_container_basic (self, "ResultContainer" result_container, float start_time, "list[Result | LegacyResult]" search_results) |
Class to manage :py:obj:`EngineProcessor` instances in a key/value map (instances stored by *engine-name*).
Definition at line 35 of file __init__.py.
searx.search.processors.ProcessorMap.init | ( | self, | |
list[dict[str, t.Any]] | engine_list ) |
Initialize all engines and registers a processor for each engine.
Definition at line 47 of file __init__.py.
References processor_types.
Referenced by searx.sqlitedb.SQLiteAppl.connect(), and searx.sqlitedb.SQLiteAppl.DB().
bool searx.search.processors.ProcessorMap.register_processor | ( | self, | |
EngineProcessor | eng_proc, | ||
bool | eng_proc_ok ) |
Register the :py:obj:`EngineProcessor`. This method is usually passed as a callback to the initialization of the :py:obj:`EngineProcessor`. The value (true/false) passed in ``eng_proc_ok`` indicates whether the initialization of the :py:obj:`EngineProcessor` was successful; if this is not the case, the processor is not registered.
Definition at line 72 of file __init__.py.
|
static |
Definition at line 39 of file __init__.py.
Referenced by init().
searx.search.processors.ProcessorMap.register_processor |
Definition at line 70 of file __init__.py.