.oO SearXNG Developer Documentation Oo.
|
Functions | |
init (_engine_settings) | |
EngineResults | search (query, _params) |
list[dict] | search_keys (query) |
Variables | |
str | engine_type = 'offline' |
str | host = '127.0.0.1' |
int | port = 6379 |
str | password = '' |
int | db = 0 |
bool | paging = False |
bool | exact_match_only = True |
_redis_client = None | |
Redis is an open source (BSD licensed), in-memory data structure (key value based) store. Before configuring the ``redis_server`` engine, you must install the dependency redis_. Configuration ============= Select a database to search in and set its index in the option ``db``. You can either look for exact matches or use partial keywords to find what you are looking for by configuring ``exact_match_only``. Example ======= Below is an example configuration: .. code:: yaml # Required dependency: redis - name: myredis shortcut : rds engine: redis_server exact_match_only: false host: '127.0.0.1' port: 6379 enable_http: true password: '' db: 0 Implementations ===============
searx.engines.redis_server.init | ( | _engine_settings | ) |
Definition at line 56 of file redis_server.py.
EngineResults searx.engines.redis_server.search | ( | query, | |
_params ) |
Definition at line 67 of file redis_server.py.
References search_keys().
list[dict] searx.engines.redis_server.search_keys | ( | query | ) |
Definition at line 85 of file redis_server.py.
Referenced by search().
|
protected |
Definition at line 53 of file redis_server.py.
int searx.engines.redis_server.db = 0 |
Definition at line 47 of file redis_server.py.
str searx.engines.redis_server.engine_type = 'offline' |
Definition at line 41 of file redis_server.py.
bool searx.engines.redis_server.exact_match_only = True |
Definition at line 51 of file redis_server.py.
str searx.engines.redis_server.host = '127.0.0.1' |
Definition at line 44 of file redis_server.py.
bool searx.engines.redis_server.paging = False |
Definition at line 50 of file redis_server.py.
str searx.engines.redis_server.password = '' |
Definition at line 46 of file redis_server.py.
int searx.engines.redis_server.port = 6379 |
Definition at line 45 of file redis_server.py.