.oO SearXNG Developer Documentation Oo.
|
Functions | |
init (engine_settings=None) | |
search (query, request_params) | |
Variables | |
str | engine_type = 'offline' |
list | categories = ['general'] |
bool | disabled = True |
float | timeout = 2.0 |
dict | about |
_my_offline_engine = None | |
Within this module we implement a *demo offline engine*. Do not look to close to the implementation, its just a simple example. To get in use of this *demo* engine add the following entry to your engines list in ``settings.yml``: .. code:: yaml - name: my offline engine engine: demo_offline shortcut: demo disabled: false
searx.engines.demo_offline.init | ( | engine_settings = None | ) |
Initialization of the (offline) engine. The origin of this demo engine is a simple json string which is loaded in this example while the engine is initialized.
Definition at line 34 of file demo_offline.py.
searx.engines.demo_offline.search | ( | query, | |
request_params ) |
Query (offline) engine and return results. Assemble the list of results from your local engine. In this demo engine we ignore the 'query' term, usual you would pass the 'query' term to your local engine to filter out the results.
Definition at line 51 of file demo_offline.py.
|
protected |
Definition at line 31 of file demo_offline.py.
dict searx.engines.demo_offline.about |
Definition at line 22 of file demo_offline.py.
list searx.engines.demo_offline.categories = ['general'] |
Definition at line 18 of file demo_offline.py.
bool searx.engines.demo_offline.disabled = True |
Definition at line 19 of file demo_offline.py.
str searx.engines.demo_offline.engine_type = 'offline' |
Definition at line 17 of file demo_offline.py.
float searx.engines.demo_offline.timeout = 2.0 |
Definition at line 20 of file demo_offline.py.